I try to fork mainnet by running yarn hardhat node and I get that error.
Error HH604: Error running JSON-RPC server: Unknown transaction type 106
My hardhat.config.js file has forking settings.
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,
},
},
},
};
I have tried edit my package.json based on this solution. and run yarn start.
After that, I get --openssl-legacy-provider is not allowed in NODE_OPTIONS error. I have tried to downgrade Node to v16 but I get still the same error.