I can deploy a few Ethereum smart contracts into my parachain via Hardhat.
But those are only normal contracts. All the upgradeable contracts and ERC777 contract cannot be deployed with the ExhaustsResources error:
ProviderError: submit transaction to pool failed:
Pool(InvalidTransaction(InvalidTransaction::ExhaustsResources))
Reference: https://wiki.polkadot.network/docs/maintain-errors.
my hardhat.config.ts
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
parachain: {
url: `${PARACHAIN_CHAIN_URL}`,
chainId: 1345,
//gasPrice:...//causes Payment error
gas: 25e6,//these also work: 7e6, 2e6
accounts: {
mnemonic: `${MNEMONIC}`,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: "",
},
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_API_KEY}`,
chainId: 4,
gasPrice: ethers.utils.parseUnits("20", "gwei").toNumber(),
gas: 25e6,
accounts: [`0x${OWNERPK}`, `0x${USER1PK}`, `0x${USER2PK}`],
},
},
};
I can run the same deployment script to deploy contracts to Rinkeby network, but why the same script cannot deploy upgradeable and ERC777 contracts to my parachain???
I suspect my parachain has certain limitations on deployment sizes...
- Where is that set?
- How can I increase such limitation?