Skip to content

Commit

Permalink
Try with setting next block timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad committed Dec 12, 2024
1 parent 5017d6a commit 12986aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/common-testnets/src/anvil/AnvilTestnetFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export class AnvilTestnetFactory implements TestnetFactory {

const client = getAnvilClient(url)

await client.mineBlocks(1n)
await client.mineBlocks(1n)
const timestamp = (await client.getBlock()).timestamp
await client.setNextBlockTimestamp(timestamp + 1n)
await client.mineBlocks(2n)

return {
client,
Expand Down

0 comments on commit 12986aa

Please sign in to comment.