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

Problem: potentially unneeded, deprecated and legacy functions in use #345

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

devashishdxt
Copy link
Collaborator

Solution: Removed legacy API from supply module and unused code from chainmain module. Fixes #338.

Solution: Removed legacy API from supply module and unused code from chainmain module. Fixes crypto-org-chain#338.
@tomtau
Copy link
Contributor

tomtau commented Jan 7, 2021

/runsim

@github-actions
Copy link

github-actions bot commented Jan 7, 2021

Simulation tests started and triggered by /runsim.
Will update here when it succeeds or fails.
Can further check progress here

@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #345 (a922455) into master (74e4e42) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #345      +/-   ##
==========================================
+ Coverage   12.03%   12.13%   +0.09%     
==========================================
  Files          35       32       -3     
  Lines        5349     5165     -184     
==========================================
- Hits          644      627      -17     
+ Misses       4453     4289     -164     
+ Partials      252      249       -3     
Flag Coverage Δ
integration_tests 12.57% <100.00%> (+0.12%) ⬆️
unit_tests 5.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
x/chainmain/module.go 60.00% <100.00%> (ø)
x/supply/module.go 62.50% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74e4e42...a922455. Read the comment docs.

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {
return func(ctx sdk.Context, path []string, req abci.RequestQuery) ([]byte, error) {
switch path[0] {
case types.QueryTotalSupply:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these queriers not used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so. @calvinaco can clarify.

Copy link
Contributor

Choose a reason for hiding this comment

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

checked with @calvinaco -- this legacy one wasn't being used or planned to be used by third parties

@github-actions
Copy link

github-actions bot commented Jan 7, 2021

/runsim simulation test has succeeded 🎉
Can further check here

@tomtau tomtau merged commit 32c3ed8 into crypto-org-chain:master Jan 7, 2021
@devashishdxt devashishdxt deleted the issue-338 branch January 11, 2021 01:05
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.

Problem: potentially unneeded, deprecated and legacy functions in use
3 participants