#4 check name field for equate()

This commit is contained in:
Vlad Stan 2020-10-01 15:12:06 +03:00
parent 09a0eb9779
commit e80dc8d347

View file

@ -81,6 +81,7 @@ export function equate(a: any, b: any, args?: any): void {
if (b.signature === null) b.signature = undefined; if (b.signature === null) b.signature = undefined;
if (b.signatures === null) b.signatures = undefined; if (b.signatures === null) b.signatures = undefined;
if ('address' in b) t.strictEqual(a.address, b.address, 'Inequal *.address'); if ('address' in b) t.strictEqual(a.address, b.address, 'Inequal *.address');
if ('name' in b) t.strictEqual(a.name, b.name, 'Inequal *.name');
if ('hash' in b) if ('hash' in b)
t.strictEqual(tryHex(a.hash), tryHex(b.hash), 'Inequal *.hash'); t.strictEqual(tryHex(a.hash), tryHex(b.hash), 'Inequal *.hash');
if ('pubkey' in b) if ('pubkey' in b)