[TS] Update auto-generated TypeScript Bindings
[ldk-java] / ts / structs / ReadOnlyNetworkGraph.mts
index 42ce76571bda07a9a1a355b50d39df1abbd9ab47..193c883d029321686db0695586ed490a3639faa7 100644 (file)
@@ -279,17 +279,24 @@ import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor
 
 import CommonBase from './CommonBase.mjs';
 import * as bindings from '../bindings.mjs'
-import * as InternalUtils from '../InternalUtils.mjs'
 
 
+/**
+ * A read-only view of [`NetworkGraph`].
+ */
 export class ReadOnlyNetworkGraph extends CommonBase {
        /* @internal */
        public constructor(_dummy: object, ptr: number) {
                super(ptr, bindings.ReadOnlyNetworkGraph_free);
        }
 
+       /**
+        * Get network addresses by node id.
+        * Returns None if the requested node is completely unknown,
+        * or if node announcement for the node was never received.
+        */
        public get_addresses(pubkey: Uint8Array): Option_CVec_NetAddressZZ {
-               const ret: number = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33));
+               const ret: number = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(pubkey, 33)));
                const ret_hu_conv: Option_CVec_NetAddressZZ = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;