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=c45b91b3165ba0ff774d12d357188cae979574d3;hp=fed9258c47fb9e4e2613d5193a27961617110ee4;hpb=ad6b4ed4fb492ae96d1771e9fbac03950e6f5c0e;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; + } + }