Skip to content

Commit

Permalink
polishing
Browse files Browse the repository at this point in the history
more
  • Loading branch information
paweljakubas committed Apr 30, 2024
1 parent 54fa9d2 commit bcc9786
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/api/src/Cardano/Wallet/Api/Http/Server/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import Cardano.Address.Script
import Cardano.Wallet
( ErrAddCosignerKey (..)
, ErrCannotJoin (..)
, ErrCannotVote (..)
, ErrCannotQuit (..)
, ErrCannotVote (..)
, ErrConstructSharedWallet (..)
, ErrConstructTx (..)
, ErrCreateMigrationPlan (..)
Expand Down
3 changes: 1 addition & 2 deletions lib/wallet/src/Cardano/Wallet/Delegation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,4 @@ guardVoting
-> Either ErrCannotVote ()
guardVoting optionalDelegationAction votingSameAgainM = do
when (isNothing optionalDelegationAction && (fst <$> votingSameAgainM) == Just True ) $
Left $ ErrAlreadyVoted $ fromJust $ snd <$> votingSameAgainM
pure ()
Left $ ErrAlreadyVoted $ snd (fromJust votingSameAgainM)
2 changes: 1 addition & 1 deletion lib/wallet/src/Cardano/Wallet/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ data ErrCannotJoin
| ErrNoSuchPool PoolId
deriving (Generic, Eq, Show)

data ErrCannotVote
newtype ErrCannotVote
= ErrAlreadyVoted DRep
deriving (Generic, Eq, Show)

Expand Down

0 comments on commit bcc9786

Please sign in to comment.