X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRoutingFees.ts;fp=ts%2Fstructs%2FRoutingFees.ts;h=e046cbe5851781485bc2bccc68aee51581a5200f;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=f71fd081fb6e6bb8ebfa874503250fa21e9a4234;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/RoutingFees.ts b/ts/structs/RoutingFees.ts index f71fd081..e046cbe5 100644 --- a/ts/structs/RoutingFees.ts +++ b/ts/structs/RoutingFees.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.RoutingFees_free(this.ptr); } } - public RoutingFees clone() { - number ret = bindings.RoutingFees_clone(this.ptr); - const ret_hu_conv: RoutingFees = new RoutingFees(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public number get_base_msat() { number ret = bindings.RoutingFees_get_base_msat(this.ptr); return ret; @@ -50,6 +43,13 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public RoutingFees clone() { + number ret = bindings.RoutingFees_clone(this.ptr); + const ret_hu_conv: RoutingFees = new RoutingFees(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public static Result_RoutingFeesDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.RoutingFees_read(ser); Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);