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

chore: fix dummy denom coin data for test in fswap #1392

Merged
merged 3 commits into from
May 23, 2024

Conversation

170210
Copy link
Contributor

@170210 170210 commented May 21, 2024

Description

The denomMetaData requires the Display field to appear in DenomUnits. This PR corrects the error dummy coin data in the test data.

https://github.com/Finschia/finschia-sdk/blob/main/x/bank/types/metadata.go#L73-L75

closes: #XXXX

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

Signed-off-by: 170210 <j170210@icloud.com>
Signed-off-by: 170210 <j170210@icloud.com>
Signed-off-by: 170210 <j170210@icloud.com>
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.68%. Comparing base (e7c6501) to head (e5a25a1).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1392      +/-   ##
==========================================
+ Coverage   69.57%   69.68%   +0.11%     
==========================================
  Files         668      668              
  Lines       56231    56242      +11     
==========================================
+ Hits        39125    39195      +70     
+ Misses      14835    14774      -61     
- Partials     2271     2273       +2     

see 5 files with indirect coverage changes

@170210 170210 marked this pull request as ready for review May 21, 2024 11:53
@170210 170210 self-assigned this May 21, 2024
@jaeseung-bae
Copy link
Contributor

I think you should change PR title something starting with chore:.
This PR corrects test data.
Keeper runs bank's metadata validate logic when running SetSwap anyway.

@170210 170210 changed the title fix: fix dummy denom coin data for test in fswap chore: fix dummy denom coin data for test in fswap May 22, 2024
Copy link
Contributor

@jaeseung-bae jaeseung-bae left a comment

Choose a reason for hiding this comment

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

LGTM

@170210 170210 merged commit 6ca08db into Finschia:main May 23, 2024
38 checks passed
@170210 170210 added A: improvement Changes in existing functionality backport/v0.49.x labels May 24, 2024
mergify bot pushed a commit that referenced this pull request May 24, 2024
* fix: fix dummy denom coin data for test in fswap

Signed-off-by: 170210 <j170210@icloud.com>

* chore: update CHANGLOG.md

Signed-off-by: 170210 <j170210@icloud.com>

* fix: fix failed test

Signed-off-by: 170210 <j170210@icloud.com>

---------

Signed-off-by: 170210 <j170210@icloud.com>
(cherry picked from commit 6ca08db)
170210 added a commit that referenced this pull request May 24, 2024
* fix: fix dummy denom coin data for test in fswap

Signed-off-by: 170210 <j170210@icloud.com>

* chore: update CHANGLOG.md

Signed-off-by: 170210 <j170210@icloud.com>

* fix: fix failed test

Signed-off-by: 170210 <j170210@icloud.com>

---------

Signed-off-by: 170210 <j170210@icloud.com>
(cherry picked from commit 6ca08db)

Co-authored-by: 170210 <85928898+170210@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: improvement Changes in existing functionality backport/v0.49.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants