X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorAction.ts;fp=ts%2Fstructs%2FErrorAction.ts;h=25bf0917d9c2ca34b92e7db45c14cb5fc43bf485;hb=c3ae2d6897e5a809459c8d9a72a4b3aa0052c8c8;hp=fed9258c47fb9e4e2613d5193a27961617110ee4;hpb=a9a6f1747f8466e99abd5972bf675d310f6d7222;p=ldk-java diff --git a/ts/structs/ErrorAction.ts b/ts/structs/ErrorAction.ts index fed9258c..25bf0917 100644 --- a/ts/structs/ErrorAction.ts +++ b/ts/structs/ErrorAction.ts @@ -47,4 +47,12 @@ export class SendErrorMessage extends ErrorAction { msg_hu_conv.ptrs_to.add(this); this.msg = msg_hu_conv; } +} + public ErrorAction clone() { + number ret = bindings.ErrorAction_clone(this.ptr); + ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }