[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / ShutdownScript.cs
index 30bf39a305b7cb48c3d98b37e01021916836f939..485cb08b885036fafbaae5ec70f208ce6331af53 100644 (file)
@@ -41,7 +41,7 @@ public class ShutdownScript : CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public bool eq(org.ldk.structs.ShutdownScript b) {
-               bool ret = bindings.ShutdownScript_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.ShutdownScript_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                if (this != null) { this.ptrs_to.AddLast(b); };
@@ -108,17 +108,16 @@ public class ShutdownScript : CommonBase {
         * 
         * This function may return an error if `program` is invalid for the segwit `version`.
         */
-       public static Result_ShutdownScriptInvalidShutdownScriptZ new_witness_program(org.ldk.util.WitnessVersion version, byte[] program) {
-               long ret = bindings.ShutdownScript_new_witness_program(version.getVal(), InternalUtils.encodeUint8Array(program));
-               GC.KeepAlive(version);
-               GC.KeepAlive(program);
+       public static Result_ShutdownScriptInvalidShutdownScriptZ new_witness_program(org.ldk.structs.WitnessProgram witness_program) {
+               long ret = bindings.ShutdownScript_new_witness_program(witness_program.ptr);
+               GC.KeepAlive(witness_program);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
 
        /**
-        * Converts the shutdown script into the underlying [`Script`].
+        * Converts the shutdown script into the underlying [`ScriptBuf`].
         */
        public byte[] into_inner() {
                long ret = bindings.ShutdownScript_into_inner(this.ptr);
@@ -148,7 +147,7 @@ public class ShutdownScript : CommonBase {
         * Specifically, checks for compliance with feature `option_shutdown_anysegwit`.
         */
        public bool is_compatible(org.ldk.structs.InitFeatures features) {
-               bool ret = bindings.ShutdownScript_is_compatible(this.ptr, features == null ? 0 : features.ptr);
+               bool ret = bindings.ShutdownScript_is_compatible(this.ptr, features.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(features);
                if (this != null) { this.ptrs_to.AddLast(features); };