X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FSpendableOutputDescriptor.ts;h=f0758a28c91ac6a928f63a44817883620b3c42bd;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=33d2980825027d12c10213a4959019da68094829;hpb=ba1af51214a8ea2de62b84cd23b6145173c71752;p=ldk-java diff --git a/ts/structs/SpendableOutputDescriptor.ts b/ts/structs/SpendableOutputDescriptor.ts index 33d29808..f0758a28 100644 --- a/ts/structs/SpendableOutputDescriptor.ts +++ b/ts/structs/SpendableOutputDescriptor.ts @@ -57,6 +57,11 @@ export class StaticPaymentOutput extends SpendableOutputDescriptor { this.static_payment_output = static_payment_output_hu_conv; } } + public number clone_ptr() { + number ret = bindings.SpendableOutputDescriptor_clone_ptr(this.ptr); + return ret; + } + public SpendableOutputDescriptor clone() { number ret = bindings.SpendableOutputDescriptor_clone(this.ptr); SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret); @@ -68,7 +73,6 @@ export class StaticPaymentOutput extends SpendableOutputDescriptor { number ret = bindings.SpendableOutputDescriptor_static_output(outpoint == null ? 0 : outpoint.ptr & ~1, output.ptr); SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(outpoint); return ret_hu_conv; } @@ -76,7 +80,6 @@ export class StaticPaymentOutput extends SpendableOutputDescriptor { number ret = bindings.SpendableOutputDescriptor_delayed_payment_output(a == null ? 0 : a.ptr & ~1); SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(a); return ret_hu_conv; } @@ -84,7 +87,6 @@ export class StaticPaymentOutput extends SpendableOutputDescriptor { number ret = bindings.SpendableOutputDescriptor_static_payment_output(a == null ? 0 : a.ptr & ~1); SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(a); return ret_hu_conv; }