setAccountEnv
Simulate a specific UserOperation without needing to simulate the UserOperations in the entire test suite.
Usage
string memory newEnv = "SAFE";
instance.setAccountEnv(newEnv);
Parameters
instance
- Type:
AccountInstance
The instance of the account used for testing.
env
- Type:
string
The account identifier, which can be one of the following:
DEFAULT
: The ERC-7579 Reference ImplementationSAFE
: The Safe accountKERNEL
: The Kernel accountNEXUS
: The Nexus accountCUSTOM
: A custom account
Returns
None