X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRawInvoice.ts;h=3cd1b0412d89129315d05b4036d978bc90de2eac;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=162796d5f98d0680cb7416dfb3060321d0ac5104;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;p=ldk-java diff --git a/ts/structs/RawInvoice.ts b/ts/structs/RawInvoice.ts index 162796d5..3cd1b041 100644 --- a/ts/structs/RawInvoice.ts +++ b/ts/structs/RawInvoice.ts @@ -27,7 +27,6 @@ import * as bindings from '../bindings' // TODO: figure out location public void set_data(RawDataPart val) { bindings.RawInvoice_set_data(this.ptr, val == null ? 0 : val.ptr & ~1); - this.ptrs_to.add(val); } public boolean eq(RawInvoice b) { @@ -36,6 +35,11 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } + public number clone_ptr() { + number ret = bindings.RawInvoice_clone_ptr(this.ptr); + return ret; + } + public RawInvoice clone() { number ret = bindings.RawInvoice_clone(this.ptr); const ret_hu_conv: RawInvoice = new RawInvoice(null, ret);