Skip to content

Commit

Permalink
address linters
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Dec 18, 2023
1 parent 8880a92 commit fd6ab40
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ If no proposal ID is given by the user, the latest proposal is queried and depos
bin, err := utils.NewEvmosTestingBinary()
if err != nil {
bin.Logger.Error().Msgf("error creating binary: %v", err)

return
}

if err = bin.GetAccounts(); err != nil {
bin.Logger.Error().Msgf("error getting accounts: %v", err)

return
}

proposalID, err := gov.Deposit(bin, args)
if err != nil {
bin.Logger.Error().Msgf("error depositing: %v", err)

return
}

Expand Down
4 changes: 4 additions & 0 deletions cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@ voting for it using all keys of in the keyring and having it pass.`,
bin, err := utils.NewEvmosTestingBinary()
if err != nil {
bin.Logger.Error().Msgf("error creating binary: %v", err)

return
}

if err = bin.GetAccounts(); err != nil {
bin.Logger.Error().Msgf("error getting accounts: %v", err)

return
}

targetVersion := args[0]
if matched, _ := regexp.MatchString(`v\d+\.\d+\.\d(-rc\d+)?`, targetVersion); !matched {
bin.Logger.Error().Msgf("invalid target version: %s; please use the format vX.Y.Z(-rc*).", targetVersion)

return
}

if err := upgradeLocalNode(bin, targetVersion); err != nil {
bin.Logger.Error().Msgf("error upgrading local node: %v", err)

return
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ If no proposal ID is passed, the latest proposal on chain is queried and used.`,
bin, err := utils.NewEvmosTestingBinary()
if err != nil {
bin.Logger.Error().Msgf("error creating binary: %v", err)

return
}

if err = bin.GetAccounts(); err != nil {
bin.Logger.Error().Msgf("error getting accounts: %v", err)

return
}

proposalID, err := gov.SubmitAllVotes(bin, args)
if err != nil {
bin.Logger.Error().Msgf("error submitting votes: %v", err)

return
}

Expand Down

0 comments on commit fd6ab40

Please sign in to comment.