Skip to content

Commit 9e66e96

Browse files
palascarbolymer
andcommitted
Add HasCallStack to several functions
Co-authored-by: Mateusz Galazyn <[email protected]>
1 parent 25770a2 commit 9e66e96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Data.ByteString.Lazy.Char8 (pack)
2424
import Data.String (fromString)
2525
import qualified Data.Text as Text
2626
import Data.Word (Word32)
27-
import GHC.Stack (callStack)
27+
import GHC.Stack (HasCallStack, callStack)
2828
import Lens.Micro ((^?))
2929
import System.FilePath ((</>))
3030

@@ -47,7 +47,7 @@ import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
4747
-- @desiredNumberOfPools@ parameter) to check that it fails, when the first DRep votes "yes" and the
4848
-- last two vote "no". Later we chack that if we change the stake holders under the DReps that vote
4949
-- "no" to delegate to the automate "always abstain" DRep, the same kind of proposal passes.
50-
--
50+
--
5151
-- This test is meant to ensure that delegating to "always abstain" has the desired effect of
5252
-- counting as abstaining for the stake delegated.
5353
--
@@ -122,7 +122,7 @@ hprop_check_predefined_abstain_drep = H.integrationWorkspace "test-activity" $ \
122122
wallet0 Nothing [(1, "yes")] newNumberOfDesiredPools2 newNumberOfDesiredPools2 2
123123

124124
delegateToAlwaysAbstain
125-
:: (MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m)
125+
:: (HasCallStack, MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m)
126126
=> H.ExecConfig
127127
-> EpochStateView
128128
-> FilePath
@@ -167,7 +167,7 @@ delegateToAlwaysAbstain execConfig epochStateView configurationFile socketPath s
167167
void $ waitUntilEpoch (File configurationFile) (File socketPath) (EpochNo (epochAfterProp + 2))
168168

169169
desiredPoolNumberProposalTest
170-
:: (MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m, Foldable t)
170+
:: (HasCallStack, MonadTest m, MonadIO m, H.MonadAssertion m, MonadCatch m, Foldable t)
171171
=> H.ExecConfig
172172
-> EpochStateView
173173
-> FilePath
@@ -210,7 +210,7 @@ desiredPoolNumberProposalTest execConfig epochStateView configurationFile socket
210210
return thisProposal
211211

212212
makeDesiredPoolNumberChangeProposal
213-
:: (H.MonadAssertion m, MonadTest m, MonadCatch m, MonadIO m)
213+
:: (HasCallStack, H.MonadAssertion m, MonadTest m, MonadCatch m, MonadIO m)
214214
=> H.ExecConfig
215215
-> EpochStateView
216216
-> NodeConfigFile 'In

0 commit comments

Comments
 (0)