You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to a recent breaking change by Etherscan, the apikey parameter is now required by default. As a result, the default command for getting the source publicly will no longer work.
For example:
$ crytic-compile 0xd3c41c85be295607e8ea5c58487ec5894300ee67
ERROR:CryticCompile:Invalid etherscan API Key
ERROR:CryticCompile:Invalid etherscan API Key: https://api.etherscan.io/api?module=contract&action=getsourcecode&address=0xd3c41c85be295607e8ea5c58487ec5894300ee67
To address this change, it is now necessary to provide the API key using --etherscan-apikey $ETHERSCAN_API_KEY. However, this is not loaded by default.
Expected Behavior
Cryptic compile should load $ETHERSCAN_API_KEY env by default.
The issue could have occurred with other explorers as well. It was only tested with Etherscan.
The text was updated successfully, but these errors were encountered:
Due to a recent breaking change by Etherscan, the
apikey
parameter is now required by default. As a result, the default command for getting the source publicly will no longer work.For example:
To address this change, it is now necessary to provide the API key using
--etherscan-apikey $ETHERSCAN_API_KEY
. However, this is not loaded by default.Expected Behavior
Cryptic compile should load
$ETHERSCAN_API_KEY
env by default.The issue could have occurred with other explorers as well. It was only tested with Etherscan.
The text was updated successfully, but these errors were encountered: