[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / ClosingTransaction.cs
index c6f33357a745bfae795668507728c548b7e0926a..c30ec343fe5fbdb621221e561d4a2b884e0fa7ef 100644 (file)
@@ -55,7 +55,7 @@ public class ClosingTransaction : CommonBase {
         * 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); };
@@ -70,7 +70,7 @@ public class ClosingTransaction : CommonBase {
         * 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);
@@ -109,7 +109,7 @@ public class ClosingTransaction : CommonBase {
         * 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; }