X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDataLossProtect.ts;h=4f9bd46a084424fc1d1f784d542147c342075b4c;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=a08c831a6c1edbbf3459496b74900005c24721ad;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/DataLossProtect.ts b/ts/structs/DataLossProtect.ts index a08c831a..4f9bd46a 100644 --- a/ts/structs/DataLossProtect.ts +++ b/ts/structs/DataLossProtect.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.DataLossProtect_free(this.ptr); } } - 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; - } - public Uint8Array get_your_last_per_commitment_secret() { Uint8Array ret = bindings.DataLossProtect_get_your_last_per_commitment_secret(this.ptr); return ret; @@ -50,4 +43,11 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + 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; + } + }