setBlockGasLimit
Sets the block's gas limit.
Usage
ts
import { testClient } from './client'
await testClient.setBlockGasLimit({
gasLimit: 420_000n
})
ts
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})
Parameters
gasLimit
- Type:
bigint
The gas limit.
ts
await testClient.setBlockGasLimit({
gasLimit: 420_000n
})