Skip to content

Commit 8b2923a

Browse files
Jimbo4350gandawa
authored andcommitted
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 a476423 commit 8b2923a

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)