我试图通过运行yarn hardhat node来分叉mainnet,并得到了这个错误。Error HH604: Error running JSON-RPC server: Unknown transaction type 106
我的hardhat.config.js文件有分叉设置。
require("@nomiclabs/hardhat-ethers");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
forking: {
url: process.env.ARBITRUM_RPC_URL,
},
},
},
};我尝试过基于this solution.编辑我的this solution.并运行yarn start。
之后,我得到了--openssl-legacy-provider is not allowed in NODE_OPTIONS错误。我曾试图将Node降级为v16,但仍然有相同的错误。
发布于 2022-09-30 10:20:12
将在这里交叉链接:https://github.com/NomicFoundation/hardhat/issues/2995
这个问题正在积极研究,但似乎有一个修补程序可用。
https://stackoverflow.com/questions/73740416
复制相似问题