Skip to content

Commit

Permalink
add conversion check
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoLi committed Sep 30, 2022
1 parent 06a5fd3 commit 3d7c175
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ func (app App) RegisterUpgradeHandlers() {
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {

// add minter and burner permissions to evmutil
evmutilAcc := app.accountKeeper.GetModuleAccount(ctx, evmutiltypes.ModuleName).(*authtypes.ModuleAccount)
evmutilAcc, ok := app.accountKeeper.GetModuleAccount(ctx, evmutiltypes.ModuleName).(*authtypes.ModuleAccount)
if !ok {
panic("unable to fetch evmutil module account")
}
evmutilAcc.Permissions = []string{
authtypes.Minter, authtypes.Burner,
}
Expand Down

0 comments on commit 3d7c175

Please sign in to comment.