X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FReadOnlyNetworkGraph.ts;h=b0a1e25efb38372f64733e481df42246ac1daad3;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=d60088fc4e36940bdf6f5ab9791634129c160d74;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/ReadOnlyNetworkGraph.ts b/ts/structs/ReadOnlyNetworkGraph.ts index d60088fc..b0a1e25e 100644 --- a/ts/structs/ReadOnlyNetworkGraph.ts +++ b/ts/structs/ReadOnlyNetworkGraph.ts @@ -19,7 +19,7 @@ import * as bindings from '../bindings' // TODO: figure out location } } public Option_CVec_NetAddressZZ get_addresses(Uint8Array pubkey) { - number ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, pubkey); + number ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33)); Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv;