mythril
mythril copied to clipboard
feat: support seeding blockchain state
Description
Sometimes, we only want to perform analysis on contracts that are in certain blockchain state. So, adding such support would be great!
Hey @xyliang01, the officially supported way of doing this is:
- Initialise the state you want in Ganache
- Run
myth analyze --rpc ganache -a <entrypoint-address>
This will initialise bytecode, balances and storage values via RPC and supports multi-contract environments. Works well in conjunction with Truffle migrations & scripts!