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

fix(x/rewards): fixed EstimateTxFees error when minConsFee and contract flatfee are same denom #335

Merged
merged 4 commits into from
Apr 3, 2023

Conversation

spoo-bar
Copy link
Contributor

@spoo-bar spoo-bar commented Apr 3, 2023

Closes: #334

  • Fixed the sdk.Coins addition such that when both minConsFee and contract flatfee are same denom it doesnt error
  • Test case for this issue

@spoo-bar spoo-bar requested a review from fdymylja April 3, 2023 15:41
@spoo-bar spoo-bar changed the title fixes(x/rewards): fixed EstimateTxFees error when minConsFee and contract flatfee are same denom fix(x/rewards): fixed EstimateTxFees error when minConsFee and contract flatfee are same denom Apr 3, 2023
@spoo-bar spoo-bar marked this pull request as ready for review April 3, 2023 15:50
@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5b88a81) 69.63% compared to head (64ae466) 69.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #335   +/-   ##
=======================================
  Coverage   69.63%   69.63%           
=======================================
  Files          63       63           
  Lines        3777     3777           
=======================================
  Hits         2630     2630           
  Misses       1070     1070           
  Partials       77       77           
Impacted Files Coverage Δ
x/rewards/keeper/grpc_query.go 91.42% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@fdymylja fdymylja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good TY!

@spoo-bar spoo-bar merged commit 1bb75b4 into main Apr 3, 2023
8 of 9 checks passed
@spoo-bar spoo-bar deleted the spoorthi/fix-estimate-tx-fees branch April 3, 2023 15:54
spoo-bar added a commit that referenced this pull request Apr 3, 2023
…ract flatfee are same denom (#335)

* fixing #334

* adding test case where mincinsfee and flat fee are same denom

* adding another test case which checks just the min cons fee

* Update CHANGELOG.md
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

Successfully merging this pull request may close these issues.

bug(x/rewards): EstimateTxFees incorrect coin addition
2 participants