-
Notifications
You must be signed in to change notification settings - Fork 662
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
imp: omit tokens from ledger device display when empty #6498
Conversation
WalkthroughWalkthroughThe change involves removing the Changes
Sequence Diagram(s) (Beta)The changes are too simple to warrant a sequence diagram. Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yml
Review profile: CHILL
Files ignored due to path filters (1)
modules/apps/transfer/types/tx.pb.go
is excluded by!**/*.pb.go
,!**/*.pb.go
Files selected for processing (1)
- proto/ibc/applications/transfer/v1/tx.proto (1 hunks)
Additional comments not posted (1)
proto/ibc/applications/transfer/v1/tx.proto (1)
53-53
: The removal of(amino.dont_omitempty) = true
from thetokens
field is aligned with the PR's objective to omit empty tokens from the Ledger device display. This change should ensure that emptytokens
are not serialized, which is crucial for the correct display behavior on Ledger devices.
@@ -50,7 +50,7 @@ message MsgTransfer { | |||
// optional memo | |||
string memo = 8; | |||
// tokens to be transferred | |||
repeated cosmos.base.v1beta1.Coin tokens = 9 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; |
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.
could we then remove this tag from the token
?
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.
it doesn't seem to have any effect because for a single token amount always shows as a "0"
string because the amount field is a custom into sdkmath.Int.
@chatton and I tested a bunch of different variations this morning.
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.
LGTM
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.
fabulous as always!
Description
Tested with the following repo, using the ledger signing section.
https://github.com/damiannolan/simd-scripts/tree/main
closes: #6465
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.Summary by CodeRabbit
tokens
field in the transfer message to improve compatibility and maintainability.