Skip to content

Commit

Permalink
return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Nov 8, 2024
1 parent 7abdd7c commit 81ad742
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {
codeHash := crypto.Keccak256Hash(code).Bytes()

// iterate all erc20 contracts and replace contract code to new version
app.EVMKeeper.ERC20s.Walk(ctx, nil, func(contractAddr []byte) (bool, error) {
err = app.EVMKeeper.ERC20s.Walk(ctx, nil, func(contractAddr []byte) (bool, error) {
acc := app.AccountKeeper.GetAccount(ctx, contractAddr)
if acc == nil {
return true, fmt.Errorf("account not found for contract address %s", contractAddr)
Expand Down Expand Up @@ -102,6 +102,9 @@ func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {

return false, nil

Check warning on line 103 in app/upgrade.go

View check run for this annotation

Codecov / codecov/patch

app/upgrade.go#L103

Added line #L103 was not covered by tests
})
if err != nil {
return nil, err
}

return versionMap, nil
},
Expand Down

0 comments on commit 81ad742

Please sign in to comment.