refactor(client): replace interface{} with any in chain client#351
refactor(client): replace interface{} with any in chain client#351ahwlsqja wants to merge 1 commit intoInjectiveLabs:masterfrom
Conversation
Modernize 8 occurrences of map[string]interface{} to map[string]any
in ComputeOrderHashes for both ChainClient and ChainClientV2.
Go 1.18+ provides `any` as a built-in alias for `interface{}`.
This is a purely cosmetic change with zero behavioral impact.
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughTwo Go source files in the chain package were updated to replace the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Modernize 8 occurrences of
map[string]interface{}tomap[string]anyinComputeOrderHashesfor bothChainClientandChainClientV2.Motivation
Go 1.18+ provides
anyas a built-in alias forinterface{}. This is a purely cosmetic change with zero behavioral impact, improving readability and aligning with modern Go idioms.Related: #349
Changes
client/chain/chain.gomap[string]interface{}→map[string]any(4 occurrences)client/chain/chain_v2.gomap[string]interface{}→map[string]any(4 occurrences)Verification
go build ./client/...✓go vet ./client/...✓Summary by CodeRabbit