Improve ToyAccount
management in BytecodeRunner
and ToyExecutionEnvironmentV2
#1590
Labels
enhancement
New feature or request
Currently, when we write tests, we explicitly create accounts in the test itself and then pass them to
BytecodeRunner
:In this way, the
ToyExecutionEnvironment
receives the accounts we want to be available and potentially containing some bytecode associated to them.However, this may be not convenient when the same account is used to send more than one transaction within the same test, as the
nonce
has to be increased manually in test itself.Ideally, we want the
ToyExecutionEnvironment
to take care of it for us. For this reason, we want the test to have the possibility to handle addresses (and potentially bytecode associated to them) only and let theToyExecutionEnvironment
do the rest of the work.The text was updated successfully, but these errors were encountered: