X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorMessage.ts;fp=ts%2Fstructs%2FErrorMessage.ts;h=b3b05b1cb28dfc819a35da8981898360c0d94235;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=4ad554f5a5305dd9cd7114e882b769a287106579;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/ErrorMessage.ts b/ts/structs/ErrorMessage.ts index 4ad554f5..b3b05b1c 100644 --- a/ts/structs/ErrorMessage.ts +++ b/ts/structs/ErrorMessage.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ErrorMessage_free(this.ptr); } } - public ErrorMessage clone() { - number ret = bindings.ErrorMessage_clone(this.ptr); - const ret_hu_conv: ErrorMessage = new ErrorMessage(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_channel_id() { Uint8Array ret = bindings.ErrorMessage_get_channel_id(this.ptr); return ret; @@ -50,6 +43,13 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public ErrorMessage clone() { + number ret = bindings.ErrorMessage_clone(this.ptr); + const ret_hu_conv: ErrorMessage = new ErrorMessage(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.ErrorMessage_write(this.ptr); return ret;