X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FClosingSigned.ts;h=5056beda5b43841fc2d1ed7ef36e0c17a4b99faf;hb=002b08ee30f4d78b3d56e381b08faca78e1e1533;hp=41714dd05ccd97f3d680a3b4e4a472549bb2c098;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/ClosingSigned.ts b/ts/structs/ClosingSigned.ts index 41714dd0..5056beda 100644 --- a/ts/structs/ClosingSigned.ts +++ b/ts/structs/ClosingSigned.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ClosingSigned_free(this.ptr); } } - public ClosingSigned clone() { - number ret = bindings.ClosingSigned_clone(this.ptr); - const ret_hu_conv: ClosingSigned = new ClosingSigned(null, ret); - return ret_hu_conv; - } - public Uint8Array get_channel_id() { Uint8Array ret = bindings.ClosingSigned_get_channel_id(this.ptr); return ret; @@ -54,6 +48,14 @@ import * as bindings from '../bindings' // TODO: figure out location public static ClosingSigned constructor_new(Uint8Array channel_id_arg, number fee_satoshis_arg, Uint8Array signature_arg) { number ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg); const ret_hu_conv: ClosingSigned = new ClosingSigned(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public ClosingSigned clone() { + number ret = bindings.ClosingSigned_clone(this.ptr); + const ret_hu_conv: ClosingSigned = new ClosingSigned(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -62,9 +64,9 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } - public static ClosingSigned constructor_read(Uint8Array ser) { + public static Result_ClosingSignedDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.ClosingSigned_read(ser); - const ret_hu_conv: ClosingSigned = new ClosingSigned(null, ret); + Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }