[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / HtlcKey.cs
index c91c83a81788b3ebd811e012cf3296a0f19e13b5..5e1d45457da7f681e99c09d2560e9994696792c6 100644 (file)
@@ -55,7 +55,7 @@ public class HtlcKey : CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public bool eq(org.ldk.structs.HtlcKey b) {
-               bool ret = bindings.HtlcKey_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.HtlcKey_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                if (this != null) { this.ptrs_to.AddLast(b); };
@@ -88,7 +88,7 @@ public class HtlcKey : CommonBase {
         * Derive a public htlcpubkey using one node\'s `per_commitment_point` and its countersignatory\'s `basepoint`
         */
        public static HtlcKey from_basepoint(org.ldk.structs.HtlcBasepoint countersignatory_basepoint, byte[] per_commitment_point) {
-               long ret = bindings.HtlcKey_from_basepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)));
+               long ret = bindings.HtlcKey_from_basepoint(countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)));
                GC.KeepAlive(countersignatory_basepoint);
                GC.KeepAlive(per_commitment_point);
                if (ret >= 0 && ret <= 4096) { return null; }