Contract Verification - Graceful failure on isBeacon check when using blockscout RPC.#1192
Contract Verification - Graceful failure on isBeacon check when using blockscout RPC.#1192quintessenial wants to merge 1 commit intoOpenZeppelin:masterfrom
Conversation
support blockscout RPC
|
Hi @quintessenial, thanks for the PR and sorry for the late response. However, this doesn't look like the root cause. The plugin is calling the For example, if you call the RPC returns: which should be caught by the plugin. However, if you call an invalid RPC method such as "eth_invalid": then it returns "Action not found": If the issue still occurs, can you please provide the following info:
|
|
Thanks for the response @ericglau This error was received using the explorer & RPC over at https://evm.taostats.io/ (RPC: https://evm.taostats.io/api/eth-rpc) It may not be the root cause, but the only workaround I was able to find was temporarily removing the import for |
|
Hey @quintessenial, hope you're doing well! I reviewed the Elixir link you shared before, so the In the case you mentioned, a VM exception is the expected behavior when calling non-existent functions on contracts. You can make the curl calls, as Eric mentioned, to verify it. However, I can still debug this a bit more. I need the following:
Note that our plugin only supports source code verification on Etherscan-based explorers. If you’re using Blockscout, please see this thread on how to verify your proxy and implementation: https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225 If you’d like us to help verify the proxy contract itself, please also provide:
Thanks! |
When verifying a non-beacon contract, the
verifyplugin will check if theimplementation()call fails to determine if it's not a beacon. Unfortunately with a Blockscout eth-rpc the error message is different than the specified list, causing HH to assume there's something wrong with the RPC.Adding this additional error message check supports the response coming back from
eth-rpcfound here