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 when running Puppet tests #34

Closed
wallebach opened this issue Jan 4, 2024 · 5 comments
Closed

Error when running Puppet tests #34

wallebach opened this issue Jan 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@wallebach
Copy link

What version of Foundry are you on?

forge 0.2.0 (9e3ab9b 2024-01-04T00:18:01.892563000Z)

Describe the bug

For the first Puppet I get this error:

Encountered 1 failing test in test/Levels/puppet/Puppet.t.sol:Puppet
[FAIL. Reason: setup failed: missing field `stateMutability` at line 34 column 8] setUp() (gas: 0)

For Puppet V2 there is the following error:

Encountered 1 failing test in test/Levels/puppet-v2/PuppetV2.t.sol:PuppetV2
[FAIL. Reason: setup failed: duplicate field `bytecode` at line 403 column 14] setUp() (gas: 0)

Why could this happen and what to do?

@wallebach wallebach added the bug Something isn't working label Jan 4, 2024
@wallebach
Copy link
Author

I downgraded as mentioned here #22 (comment), but the issue still occurs. Now on version forge 0.2.0 (9e3ab9b 2024-01-04T00:18:01.892563000Z)

@wallebach
Copy link
Author

I tried to install a virtual environment (Ubuntu) on my Mac, but the issue still occurs even in the virtual environment. Could it be somehow related to Apple M1 processor?

@cy4n1d3-p1x3l
Copy link

cy4n1d3-p1x3l commented Jan 7, 2024

94777647f6ea5d34572a1b15c9b57e35b8c77b41
migrate to this foundry commit instead
it'll work

@wallebach
Copy link
Author

Yes, it works now! Thanks a lot @cy4n1d3-p1x3l ! Why does it work on this specific commit?

@cy4n1d3-p1x3l
Copy link

No idea I just searched the commit in the repo around the time previous listed issue was addressed and found this particular commit.
Maybe try raising a issue in the foundry repo, it'll be of great help to the both of us and Manu others.

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

2 participants