diff --git a/cardano-api/src/Cardano/Api/Tx.hs b/cardano-api/src/Cardano/Api/Tx.hs index 408e1848adc..a55f86f242a 100644 --- a/cardano-api/src/Cardano/Api/Tx.hs +++ b/cardano-api/src/Cardano/Api/Tx.hs @@ -439,7 +439,7 @@ instance IsCardanoEra era => HasTextEnvelope (KeyWitness era) where textEnvelopeType _ = case cardanoEra :: CardanoEra era of ByronEra -> "TxWitnessByron" - ShelleyEra -> "TxWitnessShelley" + ShelleyEra -> "TxWitness ShelleyEra" AllegraEra -> "TxWitness AllegraEra" MaryEra -> "TxWitness MaryEra" AlonzoEra -> "TxWitness AlonzoEra" diff --git a/cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs b/cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs index 27f32a0e28d..49594f6c1c1 100644 --- a/cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs @@ -1759,7 +1759,7 @@ acceptKeyWitnessCDDLSerialisation err = firstExceptT (ShelleyTxCmdTextEnvCddlError tEnvErr) $ newExceptT $ readFileTextEnvelopeCddlAnyOf teTypes fp - teTypes = [ FromCDDLWitness "TxWitness Shelley" CddlWitness + teTypes = [ FromCDDLWitness "TxWitness ShelleyEra" CddlWitness , FromCDDLWitness "TxWitness AllegraEra" CddlWitness , FromCDDLWitness "TxWitness MaryEra" CddlWitness , FromCDDLWitness "TxWitness AlonzoEra" CddlWitness