Skip to content

Commit

Permalink
Fix nil pointer dereference during PacketForwardKeeper initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
luckychess committed Sep 12, 2024
1 parent 29e8166 commit c4fb7c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ func New(
scopedIBCKeeper,
)

govModuleAddress := authtypes.NewModuleAddress(govtypes.ModuleName).String()
app.PacketForwardKeeper = packetforwardkeeper.NewKeeper(
appCodec,
keys[packetforwardtypes.StoreKey],
Expand All @@ -524,7 +525,7 @@ func New(
app.DistrKeeper,
app.BankKeeper,
app.IBCKeeper.ChannelKeeper,
app.GovKeeper.GetAuthority(),
govModuleAddress,
)

// Create Transfer Keepers
Expand Down Expand Up @@ -597,7 +598,7 @@ func New(
app.StakingKeeper,
app.MsgServiceRouter(),
govConfig,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
govModuleAddress,
)
// govkeeper.SetLegacyRouter(govRouter)

Expand Down

0 comments on commit c4fb7c9

Please sign in to comment.