Anvil support for Python based Web3 development and testing #4291
miohtama
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
We have just released web3-ethereum-defi toolkit for Ethereum application development) version 0.14. This release includes support for Anvil. Internally Anvil replaces earlier Ganache. Historically Ganache was problematic due to the flakiness it caused in unit testing because of the instability of its JSON-RPC when doing mainnet forks.
Any Python user (Web3.py, ApeWorX, etc.) can take a look at the API documentation of fork_network_anvil function that is one line command to create and tear down mainnet forks. The function has been hardened to work under unstable conditions, like your main JSON-RPC provider being crap.
Beta Was this translation helpful? Give feedback.
All reactions