[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / TransactionU16LenLimited.cs
index bf3c9eccbd1d7afce81e03c40d22cf059b08c82d..9e0974ca7007a3baa4744165451d828b65c3f39a 100644 (file)
@@ -54,7 +54,7 @@ public class TransactionU16LenLimited : CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public bool eq(org.ldk.structs.TransactionU16LenLimited b) {
-               bool ret = bindings.TransactionU16LenLimited_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.TransactionU16LenLimited_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                if (this != null) { this.ptrs_to.AddLast(b); };
@@ -89,6 +89,17 @@ public class TransactionU16LenLimited : CommonBase {
                return ret_conv;
        }
 
+       /**
+        * Returns a reference to the contained `Transaction`
+        */
+       public byte[] as_transaction() {
+               long ret = bindings.TransactionU16LenLimited_as_transaction(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+               return ret_conv;
+       }
+
        /**
         * Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read
         */