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

It seems to be an error deploying uniswapv2 #22

Open
eugenioclrc opened this issue Oct 1, 2022 · 6 comments
Open

It seems to be an error deploying uniswapv2 #22

eugenioclrc opened this issue Oct 1, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@eugenioclrc
Copy link

What version of Foundry are you on?

forge 0.2.0 (82a74a6 2022-10-01T00:10:04.763218971Z)

Describe the bug

This is what im seeing

[⠢] Compiling...
No files changed, compilation skipped
2022-10-01T03:25:19.025715Z ERROR forge::runner: setUp failed reason="data did not match any variant of untagged enum ArtifactBytecode" contract=0xb4c79dab8f259c7aee6e5b2aa729821864227e84

Running 1 test for test/Levels/free-rider/FreeRider.t.sol:FreeRider
[FAIL. Reason: Setup failed: data did not match any variant of untagged enum ArtifactBytecode] setUp() (gas: 0)
Test result: FAILED. 0 passed; 1 failed; finished in 1.32ms

Failing tests:
Encountered 1 failing test in test/Levels/free-rider/FreeRider.t.sol:FreeRider
[FAIL. Reason: Setup failed: data did not match any variant of untagged enum ArtifactBytecode] setUp() (gas: 0)

@eugenioclrc eugenioclrc added the bug Something isn't working label Oct 1, 2022
@BoxedFruits
Copy link

BoxedFruits commented Oct 23, 2022

Getting this bug today for the FreeRider challenge

image

forge 0.2.0 (75ca1a8 2022-10-22T00:10:39.243783072Z)

@Simon-Busch
Copy link

Same here

@manylov
Copy link

manylov commented Nov 14, 2022

same for puppet2
after 'forge update'
(forge --version forge 0.2.0 (28312e7 2022-10-13T00:16:46.908496Z)
it looks now like
image

@devnet0x
Copy link
Contributor

I was stuck on this issue too. Workaround was downgrade to september-6 version with:

foundryup -C f5ca74b2d0d75c4e2f971da25abc591a8b00183c

@vyorkin
Copy link

vyorkin commented Mar 6, 2023

Hi, could you please try updating foundry to the latest version? This should be fixed already

@devnet0x
Copy link
Contributor

devnet0x commented Mar 7, 2023

Yes, now run without errors:

(base) xubuntu@xubuntu:~/temp/damn-vulnerable-defi-foundry$ forge --version
forge 0.2.0 (1d9a34e 2023-03-06T13:49:53.917536365Z)

(base) xubuntu@xubuntu:~/temp/damn-vulnerable-defi-foundry$ forge test --match-test testExploit --match-contract FreeRider
[⠰] Compiling...
[⠒] Compiling 2 files with 0.8.17
[⠃] Solc 0.8.17 finished in 2.11s
Compiler run successful (with warnings)
...........
Running 1 test for test/Levels/free-rider/FreeRider.t.sol:FreeRider
[PASS] testExploit() (gas: 1122726)
Logs:
🧨 Let's see if you can break it... 🧨

Test result: ok. 1 passed; 0 failed; finished in 11.36ms
(base) xubuntu@xubuntu:~/temp/damn-vulnerable-defi-foundry$

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

6 participants