* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.ClosingTransaction b) {
- bool ret = bindings.ClosingTransaction_eq(this.ptr, b == null ? 0 : b.ptr);
+ bool ret = bindings.ClosingTransaction_eq(this.ptr, b.ptr);
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };
* Construct an object of the class
*/
public static ClosingTransaction of(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, org.ldk.structs.OutPoint funding_outpoint) {
- long ret = bindings.ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.encodeUint8Array(to_holder_script), InternalUtils.encodeUint8Array(to_counterparty_script), funding_outpoint == null ? 0 : funding_outpoint.ptr);
+ long ret = bindings.ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.encodeUint8Array(to_holder_script), InternalUtils.encodeUint8Array(to_counterparty_script), funding_outpoint.ptr);
GC.KeepAlive(to_holder_value_sat);
GC.KeepAlive(to_counterparty_value_sat);
GC.KeepAlive(to_holder_script);
* or using the built transaction.
*/
public Result_TrustedClosingTransactionNoneZ verify(org.ldk.structs.OutPoint funding_outpoint) {
- long ret = bindings.ClosingTransaction_verify(this.ptr, funding_outpoint == null ? 0 : funding_outpoint.ptr);
+ long ret = bindings.ClosingTransaction_verify(this.ptr, funding_outpoint.ptr);
GC.KeepAlive(this);
GC.KeepAlive(funding_outpoint);
if (ret >= 0 && ret <= 4096) { return null; }