[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / ForwardTlvs.cs
index fb662994c8e805a4cf1bc592d9e91252a24da579..d703878b905459f4d1574fc19ced35a75564523c 100644 (file)
@@ -49,7 +49,7 @@ public class ForwardTlvs : CommonBase {
         * Payment parameters for relaying over [`Self::short_channel_id`].
         */
        public void set_payment_relay(org.ldk.structs.PaymentRelay val) {
-               bindings.ForwardTlvs_set_payment_relay(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ForwardTlvs_set_payment_relay(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -71,7 +71,7 @@ public class ForwardTlvs : CommonBase {
         * Payment constraints for relaying over [`Self::short_channel_id`].
         */
        public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) {
-               bindings.ForwardTlvs_set_payment_constraints(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ForwardTlvs_set_payment_constraints(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -99,7 +99,7 @@ public class ForwardTlvs : CommonBase {
         * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
         */
        public void set_features(org.ldk.structs.BlindedHopFeatures val) {
-               bindings.ForwardTlvs_set_features(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ForwardTlvs_set_features(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -109,7 +109,7 @@ public class ForwardTlvs : CommonBase {
         * Constructs a new ForwardTlvs given each field
         */
        public static ForwardTlvs of(long short_channel_id_arg, org.ldk.structs.PaymentRelay payment_relay_arg, org.ldk.structs.PaymentConstraints payment_constraints_arg, org.ldk.structs.BlindedHopFeatures features_arg) {
-               long ret = bindings.ForwardTlvs_new(short_channel_id_arg, payment_relay_arg == null ? 0 : payment_relay_arg.ptr, payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr, features_arg == null ? 0 : features_arg.ptr);
+               long ret = bindings.ForwardTlvs_new(short_channel_id_arg, payment_relay_arg.ptr, payment_constraints_arg.ptr, features_arg.ptr);
                GC.KeepAlive(short_channel_id_arg);
                GC.KeepAlive(payment_relay_arg);
                GC.KeepAlive(payment_constraints_arg);