We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5400abe + 32b8f2a commit 7859cc2Copy full SHA for 7859cc2
govtool/backend/src/VVA/AdaHolder.hs
@@ -60,4 +60,9 @@ getStakeKeyVotingPower stakeKey = withPool $ \conn -> do
60
Text.putStrLn ("couldn't fetch voting power for stake key: " <> stakeKey)
61
return 0
62
Right [(votingPower,_)] -> return $ floor votingPower
63
- _ -> error ("multiple voting power entries for stake key: " <> unpack stakeKey)
+ Right [] -> do
64
+ Text.putStrLn ("No voting power found for stake key: " <> stakeKey)
65
+ return 0
66
+ Right _ -> do
67
+ Text.putStrLn ("Unexpected result for stake key: " <> stakeKey)
68
0 commit comments