X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FCommitmentTransaction.ts;h=97c85a9f858d269c18042b7b32dece1e321ae344;hb=a9dce3ef02da97ea3a8ed91f9704a96ebf446086;hp=d265267ce5a58c9d0399217f97ec9e80571842a2;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/CommitmentTransaction.ts b/ts/structs/CommitmentTransaction.ts index d265267c..97c85a9f 100644 --- a/ts/structs/CommitmentTransaction.ts +++ b/ts/structs/CommitmentTransaction.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location 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 +30,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 +59,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; }