X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNodeInfo.ts;fp=ts%2Fstructs%2FNodeInfo.ts;h=f848b0860f601f1650b446e21a334285bc6748ff;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=0fd77a145007b4aae145fe896540263d67c9d009;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/NodeInfo.ts b/ts/structs/NodeInfo.ts index 0fd77a14..f848b086 100644 --- a/ts/structs/NodeInfo.ts +++ b/ts/structs/NodeInfo.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.NodeInfo_free(this.ptr); } } - public NodeInfo clone() { - number ret = bindings.NodeInfo_clone(this.ptr); - const ret_hu_conv: NodeInfo = new NodeInfo(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public void set_channels(number[] val) { bindings.NodeInfo_set_channels(this.ptr, val); } @@ -62,6 +55,13 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public NodeInfo clone() { + number ret = bindings.NodeInfo_clone(this.ptr); + const ret_hu_conv: NodeInfo = new NodeInfo(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.NodeInfo_write(this.ptr); return ret;