setLoggingEnabled
Enable or disable logging on the test node network.
Usage
ts
import { testClient } from './client'
await testClient.setLoggingEnabled(true)
import { testClient } from './client'
await testClient.setLoggingEnabled(true)
ts
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'
export const testClient = createTestClient({
chain: foundry,
mode: 'anvil',
transport: http(),
})