X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTxOut.cs;h=bafa5ae430c3ca5f952a6daa7570610b98796c2a;hp=5df7f3f75b9725f589f35ce8bf1f9e5a5055f491;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hpb=afc50e5d491a11364849383b75a8f939df703bac diff --git a/c_sharp/src/org/ldk/structs/TxOut.cs b/c_sharp/src/org/ldk/structs/TxOut.cs index 5df7f3f7..bafa5ae4 100644 --- a/c_sharp/src/org/ldk/structs/TxOut.cs +++ b/c_sharp/src/org/ldk/structs/TxOut.cs @@ -12,10 +12,10 @@ public class TxOut : CommonBase { public readonly long value; internal TxOut(object _dummy, long ptr) : base(ptr) { - this.script_pubkey = bindings.TxOut_get_script_pubkey(ptr); + this.script_pubkey = InternalUtils.decodeUint8Array(bindings.TxOut_get_script_pubkey(ptr)); this.value = bindings.TxOut_get_value(ptr); } - public TxOut(long value, byte[] script_pubkey) : this(null, bindings.TxOut_new(script_pubkey, value)) {} + public TxOut(long value, byte[] script_pubkey) : this(null, bindings.TxOut_new(InternalUtils.encodeUint8Array(script_pubkey), value)) {} ~TxOut() { if (ptr != 0) { bindings.TxOut_free(ptr); }