Script failed with no error information #2761
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I figured out, the test network is wrong, but forge didn't prompt anything |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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
extcodesize
check (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.