Skip to content

Commit

Permalink
Merge pull request #469 from input-output-hk/jordan/fix-era-mismatch
Browse files Browse the repository at this point in the history
Fix NodeEraMismatchError mismatch
  • Loading branch information
Jimbo4350 authored Nov 21, 2023
2 parents 86fcd7e + 008cbac commit e81955d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Cardano.CLI.Read
import Cardano.CLI.Types.Common
import Cardano.CLI.Types.Errors.BootstrapWitnessError
import Cardano.CLI.Types.Errors.NodeEraMismatchError
import qualified Cardano.CLI.Types.Errors.NodeEraMismatchError as NEM
import Cardano.CLI.Types.Errors.ProtocolParamsError
import Cardano.CLI.Types.Errors.TxValidationError
import Cardano.CLI.Types.Output
Expand Down Expand Up @@ -166,7 +167,7 @@ renderTxCmdError = \case
[ "Execution units not available in the protocol parameters. This is "
, "likely due to not being in the Alonzo era"
]
TxCmdTxNodeEraMismatchError (NodeEraMismatchError nodeEra valueEra) ->
TxCmdTxNodeEraMismatchError (NodeEraMismatchError { NEM.era = valueEra, nodeEra = nodeEra }) ->
cardanoEraConstraints nodeEra $ cardanoEraConstraints valueEra $ mconcat
[ "Transactions can only be produced in the same era as the node. Requested era: "
, pretty (renderEra (AnyCardanoEra valueEra)) <> ", node era: "
Expand Down

0 comments on commit e81955d

Please sign in to comment.