Skip to content

New fork and forge test fails #46

@jamescarter-le

Description

@jamescarter-le

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions