Skip to content

Commit

Permalink
Merge pull request #2846 from input-output-hk/anviking/ADP-1094/alonz…
Browse files Browse the repository at this point in the history
…o-external-tx

Add missing Alonzo-case in decodeSignedTx
  • Loading branch information
rvl authored Aug 26, 2021
2 parents cea3183 + 82d4afc commit 6045d20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/shelley/src/Cardano/Wallet/Shelley/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,14 @@ _decodeSignedTx era bytes = do
Left decodeErr ->
Left $ ErrDecodeSignedTxWrongPayload (T.pack $ show decodeErr)

_ ->
AnyCardanoEra AlonzoEra ->
case Cardano.deserialiseFromCBOR (Cardano.AsTx Cardano.AsAlonzoEra) bytes of
Right txValid ->
pure $ sealShelleyTx fromAlonzoTx txValid
Left decodeErr ->
Left $ ErrDecodeSignedTxWrongPayload (T.pack $ show decodeErr)

AnyCardanoEra ByronEra ->
Left ErrDecodeSignedTxNotSupported

txConstraints :: ProtocolParameters -> TxWitnessTag -> TxConstraints
Expand Down

0 comments on commit 6045d20

Please sign in to comment.