Script failed with no error information #2761
Answered
by
onbjerg
CaledoniaProject
asked this question in
Help
|
I'm playing this level: https://capturetheether.com/challenges/math/token-sale/ So I wrote the contract: And launched forge with infura API: Anyone know why it fails? |
Answered by
onbjerg
Aug 15, 2022
Replies: 2 comments 1 reply
|
I figured out, the test network is wrong, but forge didn't prompt anything |
0 replies
If the test network is wrong you likely interacted with an account with no code. The error here is a run-time error generated by Solidity, i.e. Solidity inserts either an |
1 reply
Answer selected by
CaledoniaProject
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the test network is wrong you likely interacted with an account with no code. The error here is a run-time error generated by Solidity, i.e. Solidity inserts either an
extcodesizecheck (checking that the account has code) or an attempt to decode the return data of the function. So, it is Solidity that is reverting with no error: this is not really something we can check for, hence the lacking error message.