Hi guys, I have this error when I try to deploy with Fuji
and also with a Subnet
, but using Hardhat local node
I have no problems. I have tried different options. Here is my hardhat.config.js
with the configuration I have added:
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 1337 // We put 1337 to make the interaction with MetaMask easier.
},
fuji: {
blockGasLimit: 100000000429720, // whatever you want here.
allowUnlimitedContractSize: true,
url: FUJI_RPC_URL,
accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
gas: 2100000,
gasPrice: 8000000000
},
subnet: {
blockGasLimit: 100000000429720, // whatever you want here.
allowUnlimitedContractSize: true,
url: { SUBNET_RPC_URL,
accounts: PRIVATE_KEY_ADMIN !== undefined ? [PRIVATE_KEY_ADMIN] : [],
gas: 2100000,
gasPrice: 8000000000
},
},
};
I have added some settings that I saw in forums, however it does not work.