mythril icon indicating copy to clipboard operation
mythril copied to clipboard

feat: support seeding blockchain state

Open yxliang01 opened this issue 4 years ago • 1 comments

Description

Sometimes, we only want to perform analysis on contracts that are in certain blockchain state. So, adding such support would be great!

yxliang01 avatar Apr 08 '20 15:04 yxliang01

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!

muellerberndt avatar Apr 10 '20 06:04 muellerberndt