Open vovikhangcdv opened 4 months ago
Hi! thanks for the report. It looks like the optimism scanner includes the word "etherscan" on the URL, causing the check implemented here not be accurate:
https://github.com/crytic/crytic-compile/blob/603218d/crytic_compile/platform/etherscan.py#L252-L287
We should rework this to be more precise; maybe we can check the hostname from e.g. the list in SUPPORTED_NETWORK
Hi, I created a fix pr #569
When you use the
--etherscan-apikey
along with other explorer API key parameters, such as--optim-apikey
, the etherscan API key will be added as the firstapikey
parameter, with other explorer's keys following. This will cause the etherscan key to be counted and loaded when requesting explorer API, which is not expected when used with other explorers such as Optim, and it will result in an invalid API key error.For example:
Expected Behavior: It should work seamlessly, and the provided priority API key should adhere to the explorer's address prefix.