-
Notifications
You must be signed in to change notification settings - Fork 838
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
chore(imp) add fees auto flag logic #1386
Conversation
ENG-1474 CLI errors when paying for gas fees
ContextThere are three conditions that need to be satisfied in order to pay for gas:
Fees calculation: Current behaviorAs a user, you specify two fields in a transaction. Using the Expected behaviorThere are two types of users interacting with fees: normal users and experts
Tasks:
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1386 +/- ##
==========================================
- Coverage 72.32% 72.31% -0.01%
==========================================
Files 260 260
Lines 17723 17732 +9
==========================================
+ Hits 12818 12823 +5
- Misses 4336 4337 +1
- Partials 569 572 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK. Good work @GAtom22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @GAtom22, left some comments regarding the UX of using the different combinations. I feel we should create a table with the different options for the 3 flags
This comment was marked as spam.
This comment was marked as spam.
@fedekunze Added this comment on the ticket for clarification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
@GAtom22 can you fix the Docker linter?
|
Description
Add logic to fulfill the requirements specified on the task.
With the changes included in this PR, when no fees are specified, the
requiredFees
are used as a fallback instead of throwing an error. This is needed to achieve the desired behavior that--gas='auto'
has the same functionality as--fees='auto'
Note: To work as described in the mentioned ticket, this PR on evmos' cosmos-sdk fork must be merged and included on a release. Then, that new cosmos-sdk version should be used on this repo.
Closes https://linear.app/evmos/issue/ENG-1474/cli-errors-when-paying-for-gas-fees