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); }