Skip to content

Gas Price for Optimism #31

@cha0sg0d

Description

@cha0sg0d
  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'));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions