a16z / halmos

A symbolic testing tool for EVM smart contracts
GNU Affero General Public License v3.0
737 stars 59 forks source link

Unsupported cheatcode error #321

Open nican0r opened 2 weeks ago

nican0r commented 2 weeks ago

Describe the bug I’m working on adding halmos to this existing foundry repo: https://github.com/Recon-Fuzz/create-chimera-app/tree/halmos

But when I try to use the eq assertion provided by the chimera framework I get an unsupported cheatcode error even though when I trace through the definition of eq there are no cheatcodes used.

I know I could just use a standard solidity assertion instead but would really like to use the one from chimera because the repo’s meant to be a demonstration of it and would like to clarify if this is an issue in my implementation or a bug.

Pasted Graphic

Implementation: image

HalmosAsserts::eq image

The above inherits from forge-std/test.sol: image

To Reproduce Use the following repo: https://github.com/Recon-Fuzz/create-chimera-app/tree/halmos
Run: halmos --mc HalmosTester from root

Environment:

daejunpark commented 2 weeks ago

we're working on this in #323