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=c3ae2d6897e5a809459c8d9a72a4b3aa0052c8c8;hp=5f76a0df4ef156d0a33c33360fa067e27b950776;hpb=a9a6f1747f8466e99abd5972bf675d310f6d7222;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; + } + }