From f5020013753362c73f7363916e0cc2d41dcf6ff9 Mon Sep 17 00:00:00 2001 From: skosito Date: Wed, 3 Apr 2024 19:05:30 +0200 Subject: [PATCH] Fix lint --- x/observer/types/ballot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/observer/types/ballot.go b/x/observer/types/ballot.go index 060f6a2475..71512c9f11 100644 --- a/x/observer/types/ballot.go +++ b/x/observer/types/ballot.go @@ -3,7 +3,6 @@ package types import ( "fmt" - "cosmossdk.io/errors" cosmoserrors "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -16,7 +15,7 @@ func (m Ballot) AddVote(address string, vote VoteType) (Ballot, error) { // `index` is used to set the vote in the `Votes` array index := m.GetVoterIndex(address) if index == -1 { - return m, errors.Wrap(ErrUnableToAddVote, fmt.Sprintf("Voter %s not in voter list", address)) + return m, cosmoserrors.Wrap(ErrUnableToAddVote, fmt.Sprintf("Voter %s not in voter list", address)) } m.Votes[index] = vote return m, nil