[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / ChannelTransactionParameters.cs
index 974dfe6b9bb612c979575b2fae6f3e055eb88634..a411cec1577ee9b51337f4533790806b4e4fb615 100644 (file)
@@ -35,7 +35,7 @@ public class ChannelTransactionParameters : CommonBase {
         * Holder public keys
         */
        public void set_holder_pubkeys(org.ldk.structs.ChannelPublicKeys val) {
-               bindings.ChannelTransactionParameters_set_holder_pubkeys(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ChannelTransactionParameters_set_holder_pubkeys(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -151,7 +151,7 @@ public class ChannelTransactionParameters : CommonBase {
         * wasn't serialized, it will default to static_remote_key at deserialization.
         */
        public void set_channel_type_features(org.ldk.structs.ChannelTypeFeatures val) {
-               bindings.ChannelTransactionParameters_set_channel_type_features(this.ptr, val == null ? 0 : val.ptr);
+               bindings.ChannelTransactionParameters_set_channel_type_features(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
                if (this != null) { this.ptrs_to.AddLast(val); };
@@ -164,7 +164,7 @@ public class ChannelTransactionParameters : CommonBase {
         * Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public static ChannelTransactionParameters of(org.ldk.structs.ChannelPublicKeys holder_pubkeys_arg, short holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, org.ldk.structs.CounterpartyChannelTransactionParameters counterparty_parameters_arg, org.ldk.structs.OutPoint funding_outpoint_arg, org.ldk.structs.ChannelTypeFeatures channel_type_features_arg) {
-               long ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr, channel_type_features_arg == null ? 0 : channel_type_features_arg.ptr);
+               long ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg.ptr, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr, channel_type_features_arg.ptr);
                GC.KeepAlive(holder_pubkeys_arg);
                GC.KeepAlive(holder_selected_contest_delay_arg);
                GC.KeepAlive(is_outbound_from_holder_arg);
@@ -217,7 +217,7 @@ public class ChannelTransactionParameters : CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public bool eq(org.ldk.structs.ChannelTransactionParameters b) {
-               bool ret = bindings.ChannelTransactionParameters_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.ChannelTransactionParameters_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                if (this != null) { this.ptrs_to.AddLast(b); };