X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRoutingFees.ts;fp=ts%2Fstructs%2FRoutingFees.ts;h=f71fd081fb6e6bb8ebfa874503250fa21e9a4234;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=0a0a55cbd7e60d9d7c93574a0f31ddf19c53c20d;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/RoutingFees.ts b/ts/structs/RoutingFees.ts index 0a0a55cb..f71fd081 100644 --- a/ts/structs/RoutingFees.ts +++ b/ts/structs/RoutingFees.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public RoutingFees clone() { number ret = bindings.RoutingFees_clone(this.ptr); const ret_hu_conv: RoutingFees = new RoutingFees(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 RoutingFees constructor_new(number base_msat_arg, number proportional_millionths_arg) { number ret = bindings.RoutingFees_new(base_msat_arg, proportional_millionths_arg); const ret_hu_conv: RoutingFees = new RoutingFees(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }