In hardhat, you can get the chainId
by calling await getChainId()
. However, I'm looking for the chain name. Is there a way to get the chain name without explicitly creating a mapping myself?
EDIT: You can only use this getChainId
functionality with hardhat-deploy