X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorAction.ts;h=ff12a1ded092d7a55610e74d05695a207b875270;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=6bcb77499dfaf3d3632eb4fc3d18b337a7e75660;hpb=db1a11032b4164540a2d3403696be12bbca70e94;p=ldk-java diff --git a/ts/structs/ErrorAction.ts b/ts/structs/ErrorAction.ts index 6bcb7749..ff12a1de 100644 --- a/ts/structs/ErrorAction.ts +++ b/ts/structs/ErrorAction.ts @@ -58,6 +58,11 @@ export class SendErrorMessage extends ErrorAction { this.msg = msg_hu_conv; } } + public number clone_ptr() { + number ret = bindings.ErrorAction_clone_ptr(this.ptr); + return ret; + } + public ErrorAction clone() { number ret = bindings.ErrorAction_clone(this.ptr); ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); @@ -69,7 +74,6 @@ export class SendErrorMessage extends ErrorAction { number ret = bindings.ErrorAction_disconnect_peer(msg == null ? 0 : msg.ptr & ~1); ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(msg); return ret_hu_conv; } @@ -91,7 +95,6 @@ export class SendErrorMessage extends ErrorAction { number ret = bindings.ErrorAction_send_error_message(msg == null ? 0 : msg.ptr & ~1); ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(msg); return ret_hu_conv; }