Skip to content

Commit 62adf8a

Browse files
committed
Propagate HasCallStack to toConsensusQuery
Add HasCallStack to toConsensusQuery so it propagates the stack trace from toConsensusQueryShelleyBased's error calls for wrong-era queries.
1 parent b8d6644 commit 62adf8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cardano-api/src/Cardano/Api/Query/Internal/Type/QueryInMode.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ fromShelleyRewardAccounts =
545545
toConsensusQuery
546546
:: forall block result
547547
. ()
548+
=> HasCallStack
548549
=> Consensus.CardanoBlock StandardCrypto ~ block
549550
=> QueryInMode result
550551
-> Some (Consensus.Query block)

0 commit comments

Comments
 (0)