File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
yarn-project/world-state/src/test Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { EthAddress } from '@aztec/foundation/eth-address';
66import { type Logger , createLogger } from '@aztec/foundation/log' ;
77import { sleep } from '@aztec/foundation/sleep' ;
88import type { DataStoreConfig } from '@aztec/kv-store/config' ;
9- import { BlockHash } from '@aztec/stdlib/block' ;
109import type { Checkpoint } from '@aztec/stdlib/checkpoint' ;
1110import { 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
You can’t perform that action at this time.
0 commit comments