Add name attribute to Payments
This commit is contained in:
parent
8bbe7c7178
commit
c403757ce8
23 changed files with 105 additions and 8 deletions
ts_src/payments
|
@ -41,7 +41,7 @@ export function p2pkh(a: Payment, opts?: PaymentOpts): Payment {
|
|||
}) as StackFunction;
|
||||
|
||||
const network = a.network || BITCOIN_NETWORK;
|
||||
const o: Payment = { network };
|
||||
const o: Payment = { name: 'p2pkh', network };
|
||||
|
||||
lazy.prop(o, 'address', () => {
|
||||
if (!o.hash) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue