X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FBlindedPayInfo.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FBlindedPayInfo.cs;h=c68aaa7a9a17bf1c57372b1e536fd247b7b03292;hb=592c64eb658d92e314a2b983cea16cecf3882474;hp=e788659bc9ca652447ae32e9dabfc37a90997ca3;hpb=12fdbefaac81d5b4be6bb67addd6dcd7c46a182b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs b/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs index e788659b..c68aaa7a 100644 --- a/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs +++ b/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs @@ -135,7 +135,7 @@ public class BlindedPayInfo : CommonBase { * onion payload. */ public void set_features(org.ldk.structs.BlindedHopFeatures val) { - bindings.BlindedPayInfo_set_features(this.ptr, val == null ? 0 : val.ptr); + bindings.BlindedPayInfo_set_features(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -145,7 +145,7 @@ public class BlindedPayInfo : CommonBase { * Constructs a new BlindedPayInfo given each field */ public static BlindedPayInfo of(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, org.ldk.structs.BlindedHopFeatures features_arg) { - long ret = bindings.BlindedPayInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, features_arg == null ? 0 : features_arg.ptr); + long ret = bindings.BlindedPayInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, features_arg.ptr); GC.KeepAlive(fee_base_msat_arg); GC.KeepAlive(fee_proportional_millionths_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -195,7 +195,7 @@ public class BlindedPayInfo : CommonBase { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedPayInfo b) { - bool ret = bindings.BlindedPayInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = bindings.BlindedPayInfo_eq(this.ptr, b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); };