[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / TxOut.cs
index 5e4b89a1ff1c22a543512cd14b771f1b55248966..5df7f3f75b9725f589f35ce8bf1f9e5a5055f491 100644 (file)
@@ -15,10 +15,7 @@ public class TxOut : CommonBase {
                this.script_pubkey = bindings.TxOut_get_script_pubkey(ptr);
                this.value = bindings.TxOut_get_value(ptr);
        }
-    public TxOut(long value, byte[] script_pubkey) : base(bindings.TxOut_new(script_pubkey, value)) {
-               this.script_pubkey = 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)) {}
 
        ~TxOut() {
                if (ptr != 0) { bindings.TxOut_free(ptr); }