Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Oct 8, 2024
1 parent 466a694 commit ec1442c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/upgrade_cudos.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ func getAccPrefix(jsonData map[string]interface{}) (string, error) {
auth := jsonData[authtypes.ModuleName].(map[string]interface{})
accounts := auth["accounts"].([]interface{})

prefix := ""
lastErr := fmt.Errorf("unknown error")
for _, acc := range accounts {
accMap, ok := acc.(map[string]interface{})
Expand All @@ -242,7 +241,7 @@ func getAccPrefix(jsonData map[string]interface{}) (string, error) {
continue
}

prefix, _, err = bech32.DecodeAndConvert(accountInfo.address)
prefix, _, err := bech32.DecodeAndConvert(accountInfo.address)
if err != nil {
lastErr = fmt.Errorf("failed to decode address %s: %w", accountInfo.address, err)
continue
Expand Down

0 comments on commit ec1442c

Please sign in to comment.