Add name attribute to Payments

This commit is contained in:
junderw 2019-07-11 14:49:26 +09:00
parent 8bbe7c7178
commit c403757ce8
No known key found for this signature in database
GPG key ID: B256185D3A971908
23 changed files with 105 additions and 8 deletions
ts_src/payments

View file

@ -30,7 +30,7 @@ export function p2pk(a: Payment, opts?: PaymentOpts): Payment {
}) as StackFunction;
const network = a.network || BITCOIN_NETWORK;
const o: Payment = { network };
const o: Payment = { name: 'p2pk', network };
lazy.prop(o, 'output', () => {
if (!a.pubkey) return;