Skip to content

Commit e41ec4d

Browse files
committed
search array for matches
1 parent 0ebb33d commit e41ec4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/blockchain/test/reorg.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ tape('reorg tests', (t) => {
177177

178178
let signerStates = (blockchain as any)._cliqueLatestSignerStates
179179
t.ok(
180-
!signerStates.find((s: any) => s[0].eqn(2) && s[1][1].equals(beneficiary1)),
180+
!signerStates.find(
181+
(s: any) => s[0].eqn(2) && s[1].find((a: Address) => a.equals(beneficiary1))
182+
),
181183
'should not find reorged signer state'
182184
)
183185

@@ -203,7 +205,9 @@ tape('reorg tests', (t) => {
203205

204206
signerStates = (blockchain as any)._cliqueLatestSignerStates
205207
t.ok(
206-
!!signerStates.find((s: any) => s[0].eqn(2) && s[1][1].equals(beneficiary2)),
208+
!!signerStates.find(
209+
(s: any) => s[0].eqn(2) && s[1].find((a: Address) => a.equals(beneficiary2))
210+
),
207211
'should find reorged signer state'
208212
)
209213

0 commit comments

Comments
 (0)