[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / src / main / java / org / ldk / structs / ReadOnlyNetworkGraph.java
index ae0278a9aa0d724e76d0fafe7688f87845959bc7..0271d99815099d9afcd1d4d2315a2070a485cd8d 100644 (file)
@@ -49,8 +49,8 @@ public class ReadOnlyNetworkGraph extends CommonBase implements AutoCloseable {
         * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        @Nullable
-       public NodeInfo node(NodeId node_id) {
-               long ret = bindings.ReadOnlyNetworkGraph_node(this.ptr, node_id == null ? 0 : node_id.ptr);
+       public NodeInfo node(org.ldk.structs.NodeId node_id) {
+               long ret = bindings.ReadOnlyNetworkGraph_node(this.ptr, node_id.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(node_id);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -82,12 +82,12 @@ public class ReadOnlyNetworkGraph extends CommonBase implements AutoCloseable {
         * Returns None if the requested node is completely unknown,
         * or if node announcement for the node was never received.
         */
-       public Option_CVec_NetAddressZZ get_addresses(byte[] pubkey) {
+       public Option_CVec_SocketAddressZZ get_addresses(byte[] pubkey) {
                long ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33));
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(pubkey);
                if (ret >= 0 && ret <= 4096) { return null; }
-               org.ldk.structs.Option_CVec_NetAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_NetAddressZZ.constr_from_ptr(ret);
+               org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret);
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }