X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDataLossProtect.ts;fp=ts%2Fstructs%2FDataLossProtect.ts;h=a08c831a6c1edbbf3459496b74900005c24721ad;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=7e1183a18e2994921491b5cb05db62be3dde56a7;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/DataLossProtect.ts b/ts/structs/DataLossProtect.ts index 7e1183a1..a08c831a 100644 --- a/ts/structs/DataLossProtect.ts +++ b/ts/structs/DataLossProtect.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public DataLossProtect clone() { number ret = bindings.DataLossProtect_clone(this.ptr); const ret_hu_conv: DataLossProtect = new DataLossProtect(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 DataLossProtect constructor_new(Uint8Array your_last_per_commitment_secret_arg, Uint8Array my_current_per_commitment_point_arg) { number ret = bindings.DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg); const ret_hu_conv: DataLossProtect = new DataLossProtect(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }