ModuleKit
Testing
Utilities
setAccountEnv

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

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 Implementation
  • SAFE: The Safe account
  • KERNEL: The Kernel account
  • NEXUS: The Nexus account
  • CUSTOM: A custom account

Returns

None