-
Notifications
You must be signed in to change notification settings - Fork 683
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
add cli to get denom hash from trace path and base denom #679
Merged
+772
−35
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
eec0b8f
get denom hash from denom trace
nir1218 e917922
revert .gitignore
nir1218 3584e0c
final revert
nir1218 f9a4363
ignore history files
nir1218 3d926c4
Merge branch 'main' into main
nir1218 e349d05
Update modules/apps/transfer/client/cli/query.go
nir1218 b44c150
Update modules/apps/transfer/keeper/grpc_query.go
nir1218 9d482f2
Update modules/apps/transfer/keeper/keeper.go
nir1218 c78e7ee
Update modules/apps/transfer/keeper/grpc_query.go
nir1218 dbd8286
code review feedback integration
nir1218 61bc8b8
moved new feature to unreleased section
nir1218 d0ffb51
fix duplicate block in success test case
nir1218 4ef0da1
fix CHANGELOG format
nir1218 c5e6d3b
Merge branch 'cosmos:main' into main
nir1218 0376c4e
Merge branch 'cosmos:main' into main
nir1218 5c96dd8
fix invalid trace path argument error handling
nir1218 135650e
refactor positive test case code
nir1218 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix duplicate block in success test case
commit d0ffb51f5fbca143334119dc0396a47eef9a87fc
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the success case doesn't have to perform any functionality. This allows you to be certain the failing cases would normally succeed except in the scenario specified.
I would set the req to a default before calling tc.malleate in the for loop, I'd also set the denom trace in state. Then the case "not found denom trace" would delete the denom trace in state (or set it to a different trace that doesn't exist in state)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colin-axner @codecov-commenter I need further clarification on this point. I mistakenly put the request block before and after setting the state. If I removed the duplicate before setting the state would that be good; there is no significant difference between the test method I wrote and the one for GetDemonTrace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checkout the suggestion I put below. Don't commit that with the github UX because the formatting is probably wrong. But the main difference is adding:
in the for loop before tc.malleate()