-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
102 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{-# LANGUAGE DeriveAnyClass #-} | ||
{-# LANGUAGE DerivingStrategies #-} | ||
{-# LANGUAGE StandaloneDeriving #-} | ||
|
||
{-# OPTIONS_GHC -Wno-orphans #-} | ||
|
||
module Cardano.TxSubmit.Orphans | ||
( | ||
) where | ||
|
||
import Cardano.Api | ||
import Cardano.Binary (DecoderError) | ||
import Data.Aeson (ToJSON (..)) | ||
import qualified Data.Aeson as Aeson | ||
import Ouroboros.Consensus.Cardano.Block | ||
|
||
instance ToJSON DecoderError where | ||
toJSON = Aeson.String . textShow | ||
|
||
deriving anyclass instance ToJSON EraMismatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cardano-testnet/test/cardano-testnet-test/files/golden/tx.failed.response.golden
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
cardano-testnet/test/cardano-testnet-test/files/golden/tx.failed.response.yaml.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
contents: | ||
contents: | ||
contents: | ||
era: ShelleyBasedEraBabbage | ||
error: | ||
- contents: | ||
contents: AlonzoInBabbageUtxoPredFailure (ValueNotConservedUTxO (MaryValue | ||
(Coin 0) (MultiAsset (fromList []))) (MaryValue (Coin 300000000000) (MultiAsset | ||
(fromList [])))) | ||
tag: UtxoFailure | ||
tag: UtxowFailure | ||
- contents: | ||
contents: AlonzoInBabbageUtxoPredFailure (BadInputsUTxO (fromList [TxIn | ||
(TxId {unTxId = SafeHash "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}) | ||
(TxIx 0)])) | ||
tag: UtxoFailure | ||
tag: UtxowFailure | ||
kind: ShelleyTxValidationError | ||
tag: TxValidationErrorInCardanoMode | ||
tag: TxCmdTxSubmitValidationError | ||
tag: TxSubmitFail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters