lidofinance / state-mate

Simple tool that validates smart contracts' state
MIT License
9 stars 0 forks source link

Add Mode L2 bridged wstETH config #10

Closed arwer13 closed 2 months ago

arwer13 commented 3 months ago

To run:

yarn start configs/mode/mainnet.yml
TheDZhon commented 2 months ago
$ ts-node src/state-mate.ts configs/mode/mainnet.yml
? No ABI directory found at configs/mode/abi. Download? yes
ERROR: Failed to download contract info from api.etherscan.io: NOTOK
{
  "status": "0",
  "message": "NOTOK",
  "result": "Missing/Invalid API Key"
}
Trace
    at logError (/home/dzhon/workspace/state-mate/src/state-mate.ts:247:11)
    at logErrorAndExit (/home/dzhon/workspace/state-mate/src/state-mate.ts:251:3)
    at _loadContractInfoFromEtherscanExplorer (/home/dzhon/workspace/state-mate/src/state-mate.ts:621:5)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/dzhon/workspace/state-mate/src/state-mate.ts:686:51
    at async iterateDeployedAddresses (/home/dzhon/workspace/state-mate/src/state-mate.ts:655:7)
    at async downloadAndSaveAbis (/home/dzhon/workspace/state-mate/src/state-mate.ts:684:3)
    at async doChecks (/home/dzhon/workspace/state-mate/src/state-mate.ts:749:7)
    at async main (/home/dzhon/workspace/state-mate/src/state-mate.ts:817:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Seems I need to remove the ABIs folder before going further even if I loaded the env needed to address the error above.