X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FBalance.ts;h=c76978e049500f651fafb6ee18f1a061d177504a;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=c672712b955dec05b04aae84ad806ce8094ee9ad;hpb=7d6be8a5ef72a4ebfe07660cce55f43f6cc30b80;p=ldk-java diff --git a/ts/structs/Balance.ts b/ts/structs/Balance.ts index c672712b..c76978e0 100644 --- a/ts/structs/Balance.ts +++ b/ts/structs/Balance.ts @@ -60,6 +60,11 @@ export class MaybeClaimableHTLCAwaitingTimeout extends Balance { this.claimable_height = obj.claimable_height; } } + public number clone_ptr() { + number ret = bindings.Balance_clone_ptr(this.ptr); + return ret; + } + public Balance clone() { number ret = bindings.Balance_clone(this.ptr); Balance ret_hu_conv = Balance.constr_from_ptr(ret); @@ -97,7 +102,6 @@ export class MaybeClaimableHTLCAwaitingTimeout extends Balance { public boolean eq(Balance b) { boolean ret = bindings.Balance_eq(this.ptr, b == null ? 0 : b.ptr & ~1); - this.ptrs_to.add(b); return ret; }