Skip to content
New issue

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

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

Already on GitHub? # to your account

Gas Price for Optimism #31

Open
cha0sg0d opened this issue Apr 29, 2022 · 0 comments
Open

Gas Price for Optimism #31

cha0sg0d opened this issue Apr 29, 2022 · 0 comments

Comments

@cha0sg0d
Copy link
Collaborator

  1. Gas submitted is 2 gwei, not 1 wei.
  2. Need to have a nice way to switch gas for Optimism
  3. There is this code snippet that seems wrong to me:
/**
 * Returns the given amount of wei in gwei as a number.
 */
export function weiToGwei(wei: BigNumber): number {
  return parseFloat(utils.formatUnits(wei, 'gwei'));
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant