Merge pull request #47 from TheBlueMatt/main
[ldk-java] / src / main / java / org / ldk / structs / ShutdownScript.java
index 3d4a8eb87729b96b4b85c1714a3a94e1ca346253..f6343a16847dd115c0322482a96f613ed00d8cd7 100644 (file)
@@ -95,7 +95,10 @@ public class ShutdownScript extends CommonBase {
        }
 
        /**
-        * Generates a P2WSH script pubkey from the given segwit version and program.
+        * Generates a witness script pubkey from the given segwit version and program.
+        * 
+        * Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or
+        * [`ShutdownScript::new_p2wsh`] instead.
         * 
         * # Errors
         * 
@@ -113,7 +116,7 @@ public class ShutdownScript extends CommonBase {
         */
        public byte[] into_inner() {
                byte[] ret = bindings.ShutdownScript_into_inner(this.ptr);
-               this.ptrs_to.add(this);
+               ;
                return ret;
        }