X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FCommitmentTransaction.ts;h=2a1a96fc10d3521f46a728e7cac93827c83e97c4;hb=e405a314197cae1629f65ccf29c6966198f8f4f7;hp=d265267ce5a58c9d0399217f97ec9e80571842a2;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/CommitmentTransaction.ts b/ts/structs/CommitmentTransaction.ts index d265267c..2a1a96fc 100644 --- a/ts/structs/CommitmentTransaction.ts +++ b/ts/structs/CommitmentTransaction.ts @@ -18,9 +18,15 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.CommitmentTransaction_free(this.ptr); } } + public number clone_ptr() { + number ret = bindings.CommitmentTransaction_clone_ptr(this.ptr); + return ret; + } + public CommitmentTransaction clone() { number ret = bindings.CommitmentTransaction_clone(this.ptr); const ret_hu_conv: CommitmentTransaction = new CommitmentTransaction(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -29,9 +35,9 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } - public static CommitmentTransaction constructor_read(Uint8Array ser) { + public static Result_CommitmentTransactionDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.CommitmentTransaction_read(ser); - const ret_hu_conv: CommitmentTransaction = new CommitmentTransaction(null, ret); + Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -58,6 +64,7 @@ import * as bindings from '../bindings' // TODO: figure out location public TrustedCommitmentTransaction trust() { number ret = bindings.CommitmentTransaction_trust(this.ptr); const ret_hu_conv: TrustedCommitmentTransaction = new TrustedCommitmentTransaction(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }