Skip to content

Commit

Permalink
Fix TxWitness text envelope formatting for the Shelley era
Browse files Browse the repository at this point in the history
Fix 4493 bug - essentially the type field in the Shelley era text envelope tx body was being written to disk as "TxWitnessShelley" and being read from disk as "TxWitness Shelley". I.e there was a mismatch and therefore it was not possible to read shelley era transaction bodies.

Closes: IntersectMBO/cardano-node#4493
  • Loading branch information
Jimbo4350 committed Oct 5, 2022
1 parent 6c5bec0 commit 2977337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cardano/CLI/Shelley/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2977337

Please sign in to comment.