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

merge two global fee refactor branch #2242

Merged
merged 8 commits into from
Mar 1, 2023

Conversation

yaruwangway
Copy link
Contributor

No description provided.

glnro and others added 5 commits February 17, 2023 17:29
With Make 4.3+, the empty whitespace does not seem to work as
originally intended. This causes build tags to be "netgo ledger,"
on Ubuntu 22.04 and other systems that include the newer Make
version. The build tags were intended as "netgo,ledger" which
can be observed on Make 4.2 (shipped with Ubuntu 20.04).

This change swaps out the `+=` use in favor of an explicit `:=`.
Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html

Closes #2017.

Co-authored-by: Marius Poke <marius.poke@posteo.de>
Co-authored-by: Milan Mulji <98309852+mmulji-ic@users.noreply.github.com>
- Improve code readability
@yaruwangway yaruwangway changed the title Sainoe/global fee merge two global fee refactor branch Feb 23, 2023
@mergify
Copy link
Contributor

mergify bot commented Feb 23, 2023

⚠️ The sha of the head commit of this PR conflicts with #2229. Mergify cannot evaluate rules on this PR. ⚠️

@mergify
Copy link
Contributor

mergify bot commented Feb 23, 2023

⚠️ The sha of the head commit of this PR conflicts with #2229. Mergify cannot evaluate rules on this PR. ⚠️

@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Merging #2242 (fdc666b) into yaru/globalfee-refactor (7be1e72) will increase coverage by 0.90%.
The diff coverage is 82.69%.

❗ Current head fdc666b differs from pull request most recent head 8c4bab2. Consider uploading reports for the commit 8c4bab2 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@                     Coverage Diff                     @@
##           yaru/globalfee-refactor    #2242      +/-   ##
===========================================================
+ Coverage                    84.77%   85.67%   +0.90%     
===========================================================
  Files                           21       21              
  Lines                         1484     1459      -25     
===========================================================
- Hits                          1258     1250       -8     
+ Misses                         181      167      -14     
+ Partials                        45       42       -3     
Impacted Files Coverage Δ
x/globalfee/module.go 83.92% <0.00%> (-4.76%) ⬇️
x/globalfee/ante/fee.go 84.53% <82.14%> (-3.35%) ⬇️
x/globalfee/ante/fee_utils.go 98.09% <100.00%> (+9.30%) ⬆️
x/globalfee/types/params.go 100.00% <100.00%> (+21.05%) ⬆️

@mergify
Copy link
Contributor

mergify bot commented Feb 23, 2023

⚠️ The sha of the head commit of this PR conflicts with #2229. Mergify cannot evaluate rules on this PR. ⚠️

@yaruwangway yaruwangway mentioned this pull request Feb 23, 2023
func (coins DecCoins) Validate() error {
switch len(coins) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will be refactored later if globalfee does not allow zero coins

@yaruwangway yaruwangway marked this pull request as draft February 23, 2023 15:39
@yaruwangway yaruwangway marked this pull request as ready for review March 1, 2023 11:28
@yaruwangway yaruwangway merged commit b5fec1b into yaru/globalfee-refactor Mar 1, 2023
@yaruwangway yaruwangway deleted the sainoe/global_fee branch March 1, 2023 11:28
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.

4 participants