-
Notifications
You must be signed in to change notification settings - Fork 26
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 "execution reverted" #2
Comments
0x656acfd86be535353f0a08a327368ccf7304e819 seems it is not standard ERC20 contract, that not support |
The contract is 0x15bc9ee5c237f381dca60c1be0e8fee470a1491c5fe62b967d9e5cf3d1c698d0 |
If you check the logs of that contract https://etherscan.io/tx/0x15bc9ee5c237f381dca60c1be0e8fee470a1491c5fe62b967d9e5cf3d1c698d0 |
|
Oh you are right. It's late here :D Is there a way to check if the address support ->name() before actually using it? Because if i use it, it triggers the error and stops my loop, how to know before using it? |
As simple solution you can catch the |
I try to use "$token->name()" in a loop. It works most of the time. But sometimes i run into an error "execution reverted".
Any idea how to handle this?
This is an example transaction / address where it happens.
Transaction: https://etherscan.io/tx/0x15bc9ee5c237f381dca60c1be0e8fee470a1491c5fe62b967d9e5cf3d1c698d0
Address: 0x656acfd86be535353f0a08a327368ccf7304e819
The text was updated successfully, but these errors were encountered: