X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FTrustedClosingTransaction.ts;h=a9aa05dda1c08649a219c44e45376822fc4fa7e2;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=eb15abc187091d70536112fd44ff929b6afab54f;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/TrustedClosingTransaction.ts b/ts/structs/TrustedClosingTransaction.ts index eb15abc1..a9aa05dd 100644 --- a/ts/structs/TrustedClosingTransaction.ts +++ b/ts/structs/TrustedClosingTransaction.ts @@ -29,7 +29,7 @@ import * as bindings from '../bindings' // TODO: figure out location } public Uint8Array sign(Uint8Array funding_key, Uint8Array funding_redeemscript, number channel_value_satoshis) { - Uint8Array ret = bindings.TrustedClosingTransaction_sign(this.ptr, funding_key, funding_redeemscript, channel_value_satoshis); + Uint8Array ret = bindings.TrustedClosingTransaction_sign(this.ptr, InternalUtils.check_arr_len(funding_key, 32), funding_redeemscript, channel_value_satoshis); return ret; }