Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: setUp() failed: ValueError: constructor failed, error=Unsupported cheat code: vm.envAddress #423

Open
banescusebi opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@banescusebi
Copy link

Describe the bug

The constructor of the test contract is making use of vm.envAddress in the following way:

usdc = IERC20Metadata(vm.envAddress("USDC_ADDRESS"));

When running halmos I get the following error:

Error: setUp() failed: ValueError: constructor failed, error=Unsupported cheat code: calldata = 0x350d56bf00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000011544553545f555344545f41444452455353000000000000000000000000000000 returndata=None

Environment:

  • OS: macOS Sequoia
  • Python version: 3.9.6
  • Halmos and other dependency versions:
Package                   Version
------------------------- -----------
halmos                    0.1.13
pip                       24.3.1
z3-solver                 4.13.3.0

Is there a recommended workaround for this?

@banescusebi banescusebi added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant