Skip to content

Commit 310135d

Browse files
committed
client: fixed networkID related test failures
1 parent a70677e commit 310135d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client/test/net/protocol/ethprotocol.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ tape('[EthProtocol]', (t) => {
6464
genesisHash: '0xbb',
6565
})
6666
t.ok(
67-
status.networkId === 1 &&
67+
status.networkId.toNumber() === 1 &&
6868
status.td.toNumber() === 100 &&
6969
status.bestHash === '0xaa' &&
7070
status.genesisHash === '0xbb',

packages/client/test/net/protocol/lesprotocol.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ tape('[LesProtocol]', (t) => {
8282
status = { ...status, networkId: [0x01] }
8383
status = p.decodeStatus(status)
8484
t.ok(
85-
status.networkId === 1 &&
85+
status.networkId.toNumber() === 1 &&
8686
status.headTd.toString('hex') === '64' &&
8787
status.headHash === '0xaa' &&
8888
status.headNum.toNumber() === 100 &&

0 commit comments

Comments
 (0)