-
Notifications
You must be signed in to change notification settings - Fork 115
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
refactor: rename name to zrc20_address for MsgRemoveForeignCoin #2484
refactor: rename name to zrc20_address for MsgRemoveForeignCoin #2484
Conversation
WalkthroughThe primary change involves renaming the Changes
Assessment against linked issues
Poem
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.yaml
Review profile: CHILL
Files ignored due to path filters (1)
x/fungible/types/tx.pb.go
is excluded by!**/*.pb.go
,!**/*.pb.go
Files selected for processing (5)
- docs/spec/fungible/messages.md (1 hunks)
- proto/zetachain/zetacore/fungible/tx.proto (1 hunks)
- typescript/zetachain/zetacore/fungible/tx_pb.d.ts (1 hunks)
- x/fungible/keeper/msg_server_remove_foreign_coin.go (1 hunks)
- x/fungible/types/message_remove_foreign_coin.go (1 hunks)
Files skipped from review due to trivial changes (1)
- x/fungible/keeper/msg_server_remove_foreign_coin.go
Additional context used
Path-based instructions (2)
x/fungible/types/message_remove_foreign_coin.go (1)
Pattern
**/*.go
: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.proto/zetachain/zetacore/fungible/tx.proto (1)
Pattern
**/*.proto
: Review the Protobuf definitions, point out issues relative to compatibility, and expressiveness.
Markdownlint
docs/spec/fungible/messages.md
59-59: Column: 1
Hard tabs(MD010, no-hard-tabs)
Additional comments not posted (4)
x/fungible/types/message_remove_foreign_coin.go (1)
13-16
: LGTM!The renaming from
name
tozrc20_address
is consistent and improves clarity.proto/zetachain/zetacore/fungible/tx.proto (1)
76-76
: LGTM!The renaming from
name
tozrc20_address
is consistent and improves clarity.docs/spec/fungible/messages.md (1)
59-59
: LGTM!The renaming from
name
tozrc20_address
is consistent and improves clarity.Tools
Markdownlint
59-59: Column: 1
Hard tabs(MD010, no-hard-tabs)
typescript/zetachain/zetacore/fungible/tx_pb.d.ts (1)
279-281
: LGTM!The renaming from
name
tozrc20Address
is consistent and improves clarity.
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.yaml
Review profile: CHILL
Files selected for processing (1)
- x/fungible/types/message_remove_foreign_coin.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- x/fungible/types/message_remove_foreign_coin.go
* rename name to zrc20_address for MsgRemoveForeignCoin * update variable name
Description
fixes: #1650
MsgRemoveForeignCoin is used to remove a foreign coin (object tracking ZRC20s)
The message contains a field "Name" that represents the index. The actual index is the address of the ZRC20
Name field should therefore be renamed into ZRC20Address
How Has This Been Tested?
Summary by CodeRabbit
Documentation
name
tozrc20_address
in theMsgRemoveForeignCoin
message.Refactor
name
field tozrc20_address
in message structures and function signatures across various files for consistency and clarity.