Skip to content

Commit

Permalink
Fix NodeEraMismatchError mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Nov 21, 2023
1 parent 86fcd7e commit 008cbac
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 008cbac

Please sign in to comment.