X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FFundingLocked.ts;fp=ts%2Fstructs%2FFundingLocked.ts;h=b298b222e54da9ac1b911cae8adabd23d07a50bc;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=80725c1b6bd81749519d51dfbafb0c674d002198;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/FundingLocked.ts b/ts/structs/FundingLocked.ts index 80725c1b..b298b222 100644 --- a/ts/structs/FundingLocked.ts +++ b/ts/structs/FundingLocked.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public FundingLocked clone() { number ret = bindings.FundingLocked_clone(this.ptr); const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -45,6 +46,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static FundingLocked constructor_new(Uint8Array channel_id_arg, Uint8Array next_per_commitment_point_arg) { number ret = bindings.FundingLocked_new(channel_id_arg, next_per_commitment_point_arg); const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -56,6 +58,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static FundingLocked constructor_read(Uint8Array ser) { number ret = bindings.FundingLocked_read(ser); const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }