X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FCommitmentTransaction.ts;h=97c85a9f858d269c18042b7b32dece1e321ae344;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=4d13ed9a8f18d56cf6eaf63e26209c351cb8d72f;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/CommitmentTransaction.ts b/ts/structs/CommitmentTransaction.ts index 4d13ed9a..97c85a9f 100644 --- a/ts/structs/CommitmentTransaction.ts +++ b/ts/structs/CommitmentTransaction.ts @@ -30,10 +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); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }