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

Change gas prices for mainnet #56

Open
fadeev opened this issue Jul 26, 2024 · 0 comments
Open

Change gas prices for mainnet #56

fadeev opened this issue Jul 26, 2024 · 0 comments

Comments

@fadeev
Copy link
Member

fadeev commented Jul 26, 2024

Deployed (ZetaChain) and interacted with a swap contract (from Ethereum) on mainnet and these configs seemed to have worked for me. Perhaps, we should update the networks JSON to have them by default.

  networks: {
    ...getHardhatConfigNetworks(),
    eth_mainnet: {
      accounts: getHardhatConfigNetworks()["eth_mainnet"].accounts,
      chainId: 1,
      gas: 30000,
      gasPrice: 5000000000,
      url: "https://eth-mainnet.public.blastapi.io",
    },
    zeta_mainnet: {
      accounts: getHardhatConfigNetworks()["zeta_mainnet"].accounts,
      chainId: 7000,
      gas: 5000000,
      gasPrice: 10000000000,
      url: "https://zetachain-evm.blockpi.network:443/v1/rpc/public",
    },
  }

I also had to specify the gas limit when depositing.

    tx = await custodyContract.deposit(
      signer.address,
      args.token,
      value,
      data,
      { gasLimit: 150000 }
    );
    tx = await signer.sendTransaction({ data, to, value, gasLimit: 200000 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant