-
Notifications
You must be signed in to change notification settings - Fork 30
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
bump up mods.irisnet.org/modules/htlc to cosmos-sdk v0.50.10 #458
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ package htlc | |
import ( | ||
"cosmossdk.io/core/appmodule" | ||
"cosmossdk.io/depinject" | ||
storetypes "cosmossdk.io/store/types" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
store "github.com/cosmos/cosmos-sdk/store/types" | ||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" | ||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" | ||
|
||
|
@@ -42,7 +42,7 @@ type Inputs struct { | |
|
||
Config *modulev1.Module | ||
Cdc codec.Codec | ||
Key *store.KVStoreKey | ||
Key *storetypes.KVStoreKey | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistent KVStoreKey type usage across modules The search results show that while
🔗 Analysis chainLGTM: KVStoreKey type update matches the new import The type change from Let's verify the keeper initialization still works with this type: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check keeper initialization patterns to ensure consistent type usage
# Expected: All keeper initializations should use storetypes.KVStoreKey
ast-grep --pattern 'NewKeeper($$$, $key, $$$)'
Length of output: 48 Script: #!/bin/bash
# Let's try a different approach to find keeper initialization patterns
# First, let's find the NewKeeper function definition
ast-grep --pattern 'func NewKeeper($$$) $$ {'
# Also search for any direct usage of KVStoreKey type
rg "KVStoreKey" -A 2 -B 2
Length of output: 3152 |
||
|
||
AccountKeeper types.AccountKeeper | ||
BankKeeper types.BankKeeper | ||
|
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.
💡 Codebase verification
The import path
cosmossdk.io/store/types
needs to be updated consistently across the codebaseSeveral files are still using the old import path
github.com/cosmos/cosmos-sdk/store/types
which needs to be updated tocosmossdk.io/store/types
for consistency with Cosmos SDK v0.50.10:modules/token/depinject.go
e2e/sim_test.go
modules/token/keeper/keeper.go
modules/oracle/depinject.go
modules/oracle/keeper/keeper.go
modules/coinswap/depinject.go
modules/farm/depinject.go
modules/farm/keeper/keeper.go
modules/coinswap/keeper/keeper.go
🔗 Analysis chain
LGTM: Import path update aligns with Cosmos SDK v0.50.10
The change from
github.com/cosmos/cosmos-sdk/store/types
tocosmossdk.io/store/types
is correct and consistent with the Cosmos SDK v0.50.10 module structure.Let's verify this change is consistent across the codebase:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 882