Skip to content

Commit

Permalink
fix(rollapp): pass client keeper to ra keeper (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt authored Jul 3, 2024
1 parent 5ba056c commit 0f84b52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func New(
),
)

app.RollappKeeper = *rollappmodulekeeper.NewKeeper(appCodec, keys[rollappmoduletypes.StoreKey], app.GetSubspace(rollappmoduletypes.ModuleName), app.IBCKeeper.ChannelKeeper)
app.RollappKeeper = *rollappmodulekeeper.NewKeeper(appCodec, keys[rollappmoduletypes.StoreKey], app.GetSubspace(rollappmoduletypes.ModuleName), app.IBCKeeper.ChannelKeeper, app.IBCKeeper.ClientKeeper)

// Create Transfer Keepers
app.TransferKeeper = ibctransferkeeper.NewKeeper(
Expand Down
2 changes: 1 addition & 1 deletion testutil/keeper/rollapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func RollappKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
memStoreKey,
"RollappParams",
)
k := keeper.NewKeeper(cdc, storeKey, paramsSubspace, nil)
k := keeper.NewKeeper(cdc, storeKey, paramsSubspace, nil, nil)

ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())

Expand Down
13 changes: 7 additions & 6 deletions x/rollapp/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ type Keeper struct {
channelKeeper types.ChannelKeeper
}

func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, channelKeeper types.ChannelKeeper) *Keeper {
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, channelKeeper types.ChannelKeeper, ibcclientKeeper types.IBCClientKeeper) *Keeper {
// set KeyTable if it has not already been set
if !ps.HasKeyTable() {
ps = ps.WithKeyTable(types.ParamKeyTable())
}

return &Keeper{
cdc: cdc,
storeKey: storeKey,
paramstore: ps,
hooks: nil,
channelKeeper: channelKeeper,
cdc: cdc,
storeKey: storeKey,
paramstore: ps,
hooks: nil,
channelKeeper: channelKeeper,
ibcClientKeeper: ibcclientKeeper,
}
}

Expand Down

0 comments on commit 0f84b52

Please sign in to comment.