Skip to content

Commit

Permalink
Removed memkey from ICA keeper (#342)
Browse files Browse the repository at this point in the history
* Removed memkey from ICA keeper

* Removed memkey arg in call to NewKeeper from simapp
  • Loading branch information
lukerhoads authored Aug 24, 2021
1 parent b4d82a2 commit 8acf6e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions modules/apps/27-interchain-accounts/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ type Keeper struct {
scopedKeeper capabilitykeeper.ScopedKeeper

msgRouter *baseapp.MsgServiceRouter
memKey sdk.StoreKey
}

// NewKeeper creates a new interchain account Keeper instance
func NewKeeper(
memKey sdk.StoreKey,
cdc codec.BinaryCodec, key sdk.StoreKey,
channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper,
accountKeeper types.AccountKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, msgRouter *baseapp.MsgServiceRouter, hook types.IBCAccountHooks,
Expand All @@ -47,7 +45,6 @@ func NewKeeper(
accountKeeper: accountKeeper,
scopedKeeper: scopedKeeper,
msgRouter: msgRouter,
memKey: memKey,
hook: hook,
}
}
Expand Down
2 changes: 1 addition & 1 deletion testing/simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func NewSimApp(
transferModule := transfer.NewAppModule(app.TransferKeeper)

app.ICAKeeper = icakeeper.NewKeeper(
keys[icatypes.MemStoreKey], appCodec, keys[icatypes.StoreKey],
appCodec, keys[icatypes.StoreKey],
app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
app.AccountKeeper, scopedICAKeeper, app.MsgServiceRouter(), app,
)
Expand Down

0 comments on commit 8acf6e6

Please sign in to comment.