Closed grGred closed 1 year ago
Thanks for filling @grGred. I can't reproduce:
$ forge test --match-contract Exploit_MBCToken # running with no -vvv so as to not clutter output
[⠰] Compiling...
No files changed, compilation skipped
Running 1 test for test/Access_Control/MBCToken/MBCToken.attack.sol:Exploit_MBCToken
[PASS] test_attack() (gas: 2414975)
Test result: ok. 1 passed; 0 failed; finished in 696.86ms
This usually does indicate an issue with the RPC though:
Message: Failed to get account for 0x55d3…7955
We use Ankr's free RPC as default. It might fail sometimes (specially considering it's a free tier). You are free to customize it for the one of your preference or try another one if it fails (see foundry.toml
)
Try again and let me know if the issue persists. I will close the issue for now pending your answer.
This might need to go to the README in a troubleshooting section though so I will work on that.
Okay, but you still should lock comilper version in foundry.toml for 0.8.17. Since users localy can have other version of solc in use, which may lead to failed execution of tests. By the way thanks for you work!
After executing:
I recieved a lot of errors and was unable to complie the contract:
I've added
solc="0.8.17"
to foundry.toml, contracts compiled, and I received new error (the same as other 2 people):This looks loke the problem with the rpc, could you please check that?