在执行以下命令npx hardhat node --fork时,将收到以下错误。任何帮助都将不胜感激。

Error HH8: There's one or more errors in your config file:
* Invalid value 7.78145173254702e+76 for HardhatConfig.networks.local.accounts - Expected a value of type "remote" | string[] | HttpNetworkHDAccountsConfig | undefined.
To learn more about Hardhat's configuration, please go to https://hardhat.org/config/发布于 2022-08-28 04:49:21
解决了!
我所得到的错误是由于在accounts字段中hardhat.config.js文件中的私钥初始化错误。最初,我宣布它为:
local: {
url: LOCAL_URL,
accounts: 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
}正确的声明是
accounts: ['0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80']https://ethereum.stackexchange.com/questions/134467
复制相似问题