[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / c_sharp / src / org / ldk / structs / ForwardNode.cs
index 6860009e4f4ba6307883b8e758d4fc86a1d9b869..82c4edb25ff387c8e1fdb719d8afc437a8f9aff8 100644 (file)
@@ -33,7 +33,7 @@ public class ForwardNode : CommonBase {
         * used for [`BlindedPayInfo`] construction.
         */
        public void set_tlvs(org.ldk.structs.ForwardTlvs val) {
-               bindings.ForwardNode_set_tlvs(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ForwardNode_set_tlvs(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -81,7 +81,7 @@ public class ForwardNode : CommonBase {
         * Constructs a new ForwardNode given each field
         */
        public static ForwardNode of(org.ldk.structs.ForwardTlvs tlvs_arg, byte[] node_id_arg, long htlc_maximum_msat_arg) {
-               long ret = bindings.ForwardNode_new(tlvs_arg == null ? 0 : tlvs_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_arg, 33)), htlc_maximum_msat_arg);
+               long ret = bindings.ForwardNode_new(tlvs_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_arg, 33)), htlc_maximum_msat_arg);
                GC.KeepAlive(tlvs_arg);
                GC.KeepAlive(node_id_arg);
                GC.KeepAlive(htlc_maximum_msat_arg);