Skip to content

Commit

Permalink
fix get storage test
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Oct 1, 2024
1 parent f122708 commit 83f0234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web3/test/e2e/sepolia/get_storage_at.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
)('getStorageAt', async ({ storageSlot, block }) => {
let blockData = sepoliaBlockData[block];
if (block === 'blockHash' || block === 'blockNumber') {
const blockNumber = await web3.eth.getBlockNumber();
blockData = Number(blockNumber);
const b = await web3.eth.getBlock('finalized');
blockData = Number(b.number);
if (block === 'blockHash') {
blockData = (await web3.eth.getBlock(blockNumber)).hash as string;
blockData = b.hash as string;
}
}

Expand Down

0 comments on commit 83f0234

Please sign in to comment.