Skip to content

Commit 2600de9

Browse files
committed
fix
1 parent 5624625 commit 2600de9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

yarn-project/world-state/src/test/integration.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { EthAddress } from '@aztec/foundation/eth-address';
66
import { type Logger, createLogger } from '@aztec/foundation/log';
77
import { sleep } from '@aztec/foundation/sleep';
88
import type { DataStoreConfig } from '@aztec/kv-store/config';
9-
import { BlockHash } from '@aztec/stdlib/block';
109
import type { Checkpoint } from '@aztec/stdlib/checkpoint';
1110
import { MerkleTreeId } from '@aztec/stdlib/trees';
1211

@@ -94,9 +93,8 @@ describe('world-state integration', () => {
9493
};
9594

9695
const expectSynchedBlockHashMatches = async (number: number) => {
97-
const syncedBlockHashFr = await db.getCommitted().getLeafValue(MerkleTreeId.ARCHIVE, BigInt(number));
98-
const syncedBlockHash = syncedBlockHashFr ? new BlockHash(syncedBlockHashFr) : undefined;
99-
const archiverBlockHash = await archiver.getBlockHeader(number).then(h => h?.hash());
96+
const syncedBlockHash = await db.getCommitted().getLeafValue(MerkleTreeId.ARCHIVE, BigInt(number));
97+
const archiverBlockHash = await (await archiver.getBlockHeader(number))?.hash();
10098
expect(syncedBlockHash).toEqual(archiverBlockHash);
10199
};
102100

0 commit comments

Comments
 (0)