We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
viem
Documentation is missing
There is no usage example with viem test client
Following the the example from README I created a prool server:
prool
import { createServer } from 'prool' import { anvil } from 'prool/instances' const server = createServer({ instance: anvil(), }) await server.start()
After that following viem docs I created a test client:
import { createTestClient, http } from 'viem' import { foundry } from 'viem/chains' const client = createTestClient({ chain: foundry, mode: 'anvil', transport: http(), })
After calling client.mine({ blocks: 1 }) I expected my transaction to be mined. Instead I received ECONNREFUSED error.
client.mine({ blocks: 1 })
ECONNREFUSED
After some investigation I managed to make this set up working by explicitly starting anvil instance:
anvil
import { createServer } from 'prool' import { anvil } from 'prool/instances' const instance = anvil() await instance.start() const server = createServer({ instance }) await server.start()
This way client.mine works as expected.
client.mine
viem: 2.21.1 prool: 0.0.16
I believe usage example with viem test client should be either added to prool README or to viem docs.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the type of issue?
Documentation is missing
What is the issue?
There is no usage example with
viem
test clientWhere did you find it?
Problem
Following the the example from README I created a
prool
server:After that following viem docs I created a test client:
After calling
client.mine({ blocks: 1 })
I expected my transaction to be mined. Instead I receivedECONNREFUSED
error.Solution
After some investigation I managed to make this set up working by explicitly starting
anvil
instance:This way
client.mine
works as expected.Versions
viem
: 2.21.1prool
: 0.0.16Resolution
I believe usage example with
viem
test client should be either added toprool
README or to viem docs.The text was updated successfully, but these errors were encountered: