X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDataLossProtect.ts;fp=ts%2Fstructs%2FDataLossProtect.ts;h=4f9bd46a084424fc1d1f784d542147c342075b4c;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=a08c831a6c1edbbf3459496b74900005c24721ad;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;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; + } + }