Skip to content

Commit f580edb

Browse files
committed
test: adjust latest block state conditional
1 parent ac88085 commit f580edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/defaultProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('defaultProvider', () => {
8383

8484
test(`getStateUpdate(blockHash=${exampleBlockHash}, blockNumber=undefined)`, async () => {
8585
const stateUpdate = await testProvider.getStateUpdate(exampleBlockHash);
86-
if (!isPendingStateUpdate(stateUpdate)) {
86+
if (isPendingStateUpdate(stateUpdate)) {
8787
fail('exampleBlockHash is latest block, should not be pending');
8888
}
8989
expect(stateUpdate.block_hash).toBe(exampleBlockHash);

0 commit comments

Comments
 (0)