Skip to content

Commit 43e7751

Browse files
committed
Add Haddock comment about why we need HasTextEnvelope instance for EraHistory
1 parent 3249ba5 commit 43e7751

File tree

1 file changed

+3
-0
lines changed
  • cardano-api/src/Cardano/Api/Internal

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ instance SerialiseAsCBOR EraHistory where
194194
EraHistory
195195
<$> CBOR.decodeFullDecoder' "EraHistory" (give History.EraParamsWithGenesisWindow CBOR.decode) bs
196196

197+
-- | The @HasTextEnvelope@ instance for @EraHistory@ is required by the
198+
-- @transaction calculate-plutus-script-cost@ command in @cartdano-cli and it
199+
-- can be obtained through the @query era-history@ command.
197200
instance HasTextEnvelope EraHistory where
198201
textEnvelopeType :: AsType EraHistory -> TextEnvelopeType
199202
textEnvelopeType _ = "EraHistory"

0 commit comments

Comments
 (0)