Skip to content

Commit e80dc8d

Browse files
committed
bitcoinjs#4 check name field for equate()
1 parent 09a0eb9 commit e80dc8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/payments.utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export function equate(a: any, b: any, args?: any): void {
8181
if (b.signature === null) b.signature = undefined;
8282
if (b.signatures === null) b.signatures = undefined;
8383
if ('address' in b) t.strictEqual(a.address, b.address, 'Inequal *.address');
84+
if ('name' in b) t.strictEqual(a.name, b.name, 'Inequal *.name');
8485
if ('hash' in b)
8586
t.strictEqual(tryHex(a.hash), tryHex(b.hash), 'Inequal *.hash');
8687
if ('pubkey' in b)

0 commit comments

Comments
 (0)