increaseTime
Jump forward in time by the given amount of time, in seconds.
Usage
ts
import { testClient } from './client'
await testClient.increaseTime({
seconds: 420,
})
ts
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})
Parameters
seconds
- Type:
number
The amount of seconds to jump forward in time.
ts
await testClient.increaseTime({
seconds: 20,
})