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

New fork and forge test fails #46

Open
jamescarter-le opened this issue Jul 16, 2023 · 1 comment
Open

New fork and forge test fails #46

jamescarter-le opened this issue Jul 16, 2023 · 1 comment

Comments

@jamescarter-le
Copy link

jamescarter-le commented Jul 16, 2023

After installing Huff through curl -L https://foundry.paradigm.xyz | bash as per the instructions I forked this repo, and pulled.

Ran:

forge install
forge build
forge test

Forge test fails with the following error:

Running 1 test for test/SimpleStore.t.sol:SimpleStoreTest
[FAIL. Reason: EvmError: Revert Counterexample: calldata=0x1e04f63d0000000000000000000000000000000000000000000000000000000000000000, args=[0]] testSetAndGetValue(uint256) (runs: 0, μ: 0, ~: 0)
Test result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 693.30ms
Ran 1 test suites: 0 tests passed, 1 failed, 0 skipped (1 total tests)

Trying to run: forge test --debug "testSetAndGetValue" results in:

No files changed, compilation skipped
Error: 
Invalid hex calldata

Context:
- Invalid character 'x' at position 1

Doesn't look like there has been any changes to this repo in a while, it is out of date with foundry?

forge -V : forge 0.2.0 (56adbe4 2023-07-16T00:27:41.916140071Z)
huffc -V : huffc 0.3.2

Many thanks for any assistance.

@jamescarter-le
Copy link
Author

I found you had to add:

evm_version = 'shanghai'

To my foundry.toml file to get the tests to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant