Skip to content

Incorrect gas settings on celocli (Baklava), additionally allow overriding of gas settings #227

@kamikazechaser

Description

@kamikazechaser

Package

@celo/celocli

Have you ensured that all of these are up to date?

  • the package you are using

What version of the package are you on?

4.2.0

What command or function is the bug in?

npx celocli exchange:dollars --from 0x0--value 10000000000000000000

Operating System

Linux

Describe the bug

Network: Baklava

Output:

Running Checks:
   ✔  Account has at least 10 cUSD 
   ✔  Compliant Address 
All checks passed
Fetching Quote... done
Quoted Price: 1.19903439 per token
SendTransaction: increaseAllowance
txHash: 0x0
Sending Transaction: increaseAllowance... done
Swapping 10000000000000000000 cUSD for estimated 11990343892539984991 CELO
Sending Transaction: exchange... failed: max priority fee per gas higher than max fee per gas
    Error: max priority fee per gas higher than max fee per gas

^ It seems the gas price settings originating from @celo/cli are incorrect (fetched from node?)

Ideally allow overriding of gas settings in such cases through flags such as:

--gasLimit 500000 --gasPrice 10000000000 --priorityGasPrice 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions