Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-1559 support #194

Open
cgewecke opened this issue Mar 3, 2024 · 0 comments
Open

EIP-1559 support #194

cgewecke opened this issue Mar 3, 2024 · 0 comments
Labels

Comments

@cgewecke
Copy link
Owner

cgewecke commented Mar 3, 2024

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);`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant