The ModuleKit is integrated with a range of modular smart accounts. When you write your integration tests and use 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.
When you write your tests, you can use the makeAccountInstance
function to create an account instance. Then, you can use this instance
to execute transactions, for example:
To do this, run:
where the options are:
DEFAULT
: The ERC-7579 Reference Implementation (note: this is equivalent to emitting the ACCOUNT_TYPE
environment variable)SAFE
: The Safe accountKERNEL
: The Kernel accountNEXUS
: The Nexus accountCUSTOM
: A custom account