X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FTxOut.mts;h=55c7b272022ac532643474a9e252569318b9b550;hb=bbf1ef578b7cfe9fc7d3ad8b6626ae6204e370e5;hp=723504c4bee68a205b4a4a10c0b1f15d61aaef79;hpb=65e786e1912ddad0d749508b8830cf30b37e784e;p=ldk-java diff --git a/ts/structs/TxOut.mts b/ts/structs/TxOut.mts index 723504c4..55c7b272 100644 --- a/ts/structs/TxOut.mts +++ b/ts/structs/TxOut.mts @@ -367,7 +367,7 @@ export class TxOut extends CommonBase { this.script_pubkey = bindings.decodeUint8Array(bindings.TxOut_get_script_pubkey(ptr)); this.value = bindings.TxOut_get_value(ptr); } - public constructor_new(value: bigint, script_pubkey: Uint8Array): TxOut { + public static constructor_new(value: bigint, script_pubkey: Uint8Array): TxOut { return new TxOut(null, bindings.TxOut_new(bindings.encodeUint8Array(script_pubkey), value)); } } \ No newline at end of file