X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUpdateFee.ts;fp=ts%2Fstructs%2FUpdateFee.ts;h=b6b189ba7a1cb9bfb7b373e91bddb905d0e1275e;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=ed504174cd0ca578bb52808dcd77738b3cd2c625;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/UpdateFee.ts b/ts/structs/UpdateFee.ts index ed504174..b6b189ba 100644 --- a/ts/structs/UpdateFee.ts +++ b/ts/structs/UpdateFee.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public UpdateFee clone() { number ret = bindings.UpdateFee_clone(this.ptr); const ret_hu_conv: UpdateFee = new UpdateFee(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 UpdateFee constructor_new(Uint8Array channel_id_arg, number feerate_per_kw_arg) { number ret = bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg); const ret_hu_conv: UpdateFee = new UpdateFee(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 UpdateFee constructor_read(Uint8Array ser) { number ret = bindings.UpdateFee_read(ser); const ret_hu_conv: UpdateFee = new UpdateFee(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }