Open cygnusv opened 2 years ago
@cygnus, so you were running something like "yarn deploy --network mainnet" or "hardhat deploy --network mainnet" and got an error related to ropsten
network configuration? That looks like a bug in hardhat...
Bumping. This still happens.
Trying to deploy something on mainnet I got this ropsten related error:
Invalid account: #1 for network: ropsten - Expected string, received undefined
It seems that even though I'm deploying on mainnet, the ropsten accounts configuration is still processed and since
process.env.CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY
is set, it also expectsprocess.env.KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY
, which I shouldn't have set for deployments not related to legacy Keep.For reference, this is ropsten config on
hardhat.config.ts
: