setEnv
Signature
Section titled “Signature”function setEnv(string calldata key, string calldata value) external;Description
Section titled “Description”Set an environment variable key=value.
- The environment variable key can’t be empty.
- The environment variable key can’t contain the equal sign
=or the NUL character\0. - The environment variable value can’t contain the NUL character
\0.
Examples
Section titled “Examples”string memory key = "hello";string memory val = "world";cheats.setEnv(key, val);