X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCFailChannelUpdate.ts;fp=ts%2Fstructs%2FHTLCFailChannelUpdate.ts;h=b89c14622ff4f5af312ea9b3c1068a6dd4774c4b;hb=c45b91b3165ba0ff774d12d357188cae979574d3;hp=5f76a0df4ef156d0a33c33360fa067e27b950776;hpb=ad6b4ed4fb492ae96d1771e9fbac03950e6f5c0e;p=ldk-java diff --git a/ts/structs/HTLCFailChannelUpdate.ts b/ts/structs/HTLCFailChannelUpdate.ts index 5f76a0df..b89c1462 100644 --- a/ts/structs/HTLCFailChannelUpdate.ts +++ b/ts/structs/HTLCFailChannelUpdate.ts @@ -50,4 +50,12 @@ export class NodeFailure extends HTLCFailChannelUpdate { this.node_id = obj.node_id; this.is_permanent = obj.is_permanent; } +} + public HTLCFailChannelUpdate clone() { + number ret = bindings.HTLCFailChannelUpdate_clone(this.ptr); + HTLCFailChannelUpdate ret_hu_conv = HTLCFailChannelUpdate.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }