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: fill ContractHistory querier result's Updated field #62

Merged
merged 4 commits into from
Aug 15, 2023
Merged

Conversation

loloicci
Copy link

@loloicci loloicci commented Aug 7, 2023

Description

Without this PR, ContractHistory always returns its' Updated field as nil.
This PR cherry-picks CosmWasm@9cbf64d and fixes ContractHistory legacy querier to fill the Updated field.

How has this been tested?

Unit tests

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. (not needed)
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml (not needed)

@loloicci loloicci self-assigned this Aug 7, 2023
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #62 (27349bc) into main (dedcd9e) will decrease coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
- Coverage   62.02%   61.98%   -0.05%     
==========================================
  Files          80       80              
  Lines        9971     9966       -5     
==========================================
- Hits         6185     6177       -8     
- Misses       3450     3452       +2     
- Partials      336      337       +1     
Files Changed Coverage Δ
x/wasm/keeper/legacy_querier.go 65.09% <ø> (-1.27%) ⬇️
x/wasm/keeper/querier.go 71.72% <ø> (-0.12%) ⬇️

... and 1 file with indirect coverage changes

@170210 170210 merged commit 484e437 into main Aug 15, 2023
12 checks passed
@loloicci loloicci deleted the fill-update branch August 18, 2023 06:33
loloicci added a commit that referenced this pull request Aug 18, 2023
* Return contract history updates

* fix: fill Updated in legacy query ContractHistory

* docs: add this PR to CHANGELOG

* test: fix a cli test to check Updated

---------

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
loloicci added a commit that referenced this pull request Aug 18, 2023
…62) (#85)

* fix: fill ContractHistory querier result's Updated field (#62)

* Return contract history updates

* fix: fill Updated in legacy query ContractHistory

* docs: add this PR to CHANGELOG

* test: fix a cli test to check Updated

---------

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>

* docs: fix CHANGELOG

---------

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
@zemyblue zemyblue mentioned this pull request Oct 19, 2023
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.

5 participants