kaleido-io / kaleido-iden3-samples

Sample code for using the iden3 protocol to issue verifiable claims
Apache License 2.0
5 stars 4 forks source link

Update config file to cope with optional env vars #1

Closed Chengxuan closed 1 year ago

Chengxuan commented 1 year ago

Signed-off-by: Chengxuan Xing chengxuan.xing@kaleido.io

Hit the following error when running the readme as is:

cxing@Chengxuans-MacBook-Pro upload-claims % npx18 hardhat run scripts/deploy.js --network kaleido
Error HH8: There's one or more errors in your config file:

  * Invalid value undefined for HardhatConfig.networks.mumbai.url - Expected a value of type string.
  * Invalid account: #0 for network: mumbai - Expected string, received undefined

To learn more about Hardhat's configuration, please go to https://hardhat.org/config/

For more info go to https://hardhat.org/HH8 or run Hardhat with --show-stack-traces