tests
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Alonzo.GoldenTranslation

Description

Deserializes TranslationInstances from golden/translations.cbor file.

Each instance represents arguments passed to txInfo along with the produced result. This test checks that calling alonzoTxInfo with the arguments from this file, produces the same result as in the file.

To regenerate the golden file (for example, if the logic in the translation changes), run the following command from the root of the repository: cabal run cardano-ledger-alonzo:gen-golden"

Documentation