makeAccountInstance
, you can easily switch between different accounts. Alternatively, you can also use the setAccountEnv
function to use a specific account type for a specific test.
Write your tests
When you write your tests, you can use themakeAccountInstance
function to create an account instance. Then, you can use this instance
to execute transactions, for example:
Run your tests against different accounts
To do this, run:DEFAULT
: The ERC-7579 Reference Implementation (note: this is equivalent to emitting theACCOUNT_TYPE
environment variable)SAFE
: The Safe accountKERNEL
: The Kernel accountNEXUS
: The Nexus accountCUSTOM
: A custom account