Skip to content

Commit c23804d

Browse files
committed
chore: ignore nil account
1 parent 9e64f4d commit c23804d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

upgrade/upgrade.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func updateOrbiterModuleAccounts(ctx sdk.Context, logger log.Logger, accountKeep
7575
}
7676

7777
acc := accountKeeper.GetAccount(ctx, addr)
78+
if acc == nil {
79+
continue
80+
}
81+
7882
baseAcc, ok := (acc).(*authtypes.BaseAccount)
7983
if !ok {
8084
_, ok := (acc).(*authtypes.ModuleAccount)

0 commit comments

Comments
 (0)