Tooling
ModuleKit
Reference
Testing
Utilities
Setaccountenv

⚠️ Deprecation Notice

ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev


title: "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