Open cgewecke opened 4 months ago
HH has open issues about adding this:
Also relevant...it is actually possible to set these...workaround from:
const FEE_DATA = { maxFeePerGas: ethers.utils.parseUnits('100', 'gwei'), maxPriorityFeePerGas: ethers.utils.parseUnits('5', 'gwei'), baseFeePerGas : ethers.utils.parseUnits('20', 'gwei'), }; // Wrap the provider so we can override fee data. const provider = new ethers.providers.FallbackProvider([ethers.provider], 1); provider.getFeeData = async () => FEE_DATA; const signer = new ethers.Wallet(process.env.PRI_KEY1, provider); const StakingRewards = await ethers.getContractFactory("StakingRewards",signer);`
HH has open issues about adding this:
Also relevant...it is actually possible to set these...workaround from: