X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FInvoicePayer.ts;h=fcccc6c8ecaa68a9ac8bb0496812d5d0ef97f4bb;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=f76849f86dd56d0ecd2966710f1df931ec31963b;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/InvoicePayer.ts b/ts/structs/InvoicePayer.ts index f76849f8..fcccc6c8 100644 --- a/ts/structs/InvoicePayer.ts +++ b/ts/structs/InvoicePayer.ts @@ -45,7 +45,7 @@ import * as bindings from '../bindings' // TODO: figure out location } public void remove_cached_payment(Uint8Array payment_hash) { - bindings.InvoicePayer_remove_cached_payment(this.ptr, payment_hash); + bindings.InvoicePayer_remove_cached_payment(this.ptr, InternalUtils.check_arr_len(payment_hash, 32)); } public EventHandler as_EventHandler() {