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.
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.gois 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
nametozrc20_addressis consistent and improves clarity.proto/zetachain/zetacore/fungible/tx.proto (1)
76-76: LGTM!The renaming from
nametozrc20_addressis consistent and improves clarity.docs/spec/fungible/messages.md (1)
59-59: LGTM!The renaming from
nametozrc20_addressis 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
nametozrc20Addressis consistent and improves clarity.
There was a problem hiding this comment.
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
nametozrc20_addressin theMsgRemoveForeignCoinmessage.Refactor
namefield tozrc20_addressin message structures and function signatures across various files for consistency and clarity.