X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FAPIError.ts;h=61fdaef0b98d77196c9375233cd3e7749695947c;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=234c7b787703991e49f02cdc4ea41494717a7e09;hpb=d92b9f26eda1f6c1fbb970db797a03fac62c5606;p=ldk-java diff --git a/ts/structs/APIError.ts b/ts/structs/APIError.ts index 234c7b78..61fdaef0 100644 --- a/ts/structs/APIError.ts +++ b/ts/structs/APIError.ts @@ -77,6 +77,11 @@ export class IncompatibleShutdownScript extends APIError { this.script = script_hu_conv; } } + public number clone_ptr() { + number ret = bindings.APIError_clone_ptr(this.ptr); + return ret; + } + public APIError clone() { number ret = bindings.APIError_clone(this.ptr); APIError ret_hu_conv = APIError.constr_from_ptr(ret); @@ -123,7 +128,6 @@ export class IncompatibleShutdownScript extends APIError { number ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr & ~1); APIError ret_hu_conv = APIError.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(script); return ret_hu_conv; }