Skip to content

Commit

Permalink
Issue 2396 Make Mary Era the default
Browse files Browse the repository at this point in the history
Make tests run in Shelley Era to get them to pass
  • Loading branch information
newhoggy authored and Jimbo4350 committed Mar 2, 2021
1 parent e15515b commit 4dd7804
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs
Expand Up @@ -1521,19 +1521,19 @@ pCardanoEra = asum
)
, Opt.flag' (AnyCardanoEra ShelleyEra)
( Opt.long "shelley-era"
<> Opt.help "Specify the Shelley era (default)"
<> Opt.help "Specify the Shelley era"
)
, Opt.flag' (AnyCardanoEra AllegraEra)
( Opt.long "allegra-era"
<> Opt.help "Specify the Allegra era"
)
, Opt.flag' (AnyCardanoEra MaryEra)
( Opt.long "mary-era"
<> Opt.help "Specify the Mary era"
<> Opt.help "Specify the Mary era (default)"
)

-- Default for now:
, pure (AnyCardanoEra ShelleyEra)
, pure (AnyCardanoEra MaryEra)
]

pTxIn :: Parser TxIn
Expand Down
1 change: 1 addition & 0 deletions cardano-cli/test/Test/Golden/Shelley/TextEnvelope/Tx/Tx.hs
Expand Up @@ -38,6 +38,7 @@ golden_shelleyTx = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
-- Create transaction body
void $ execCardanoCLI
[ "transaction", "build-raw"
, "--shelley-era"
, "--tx-in", "91999ea21177b33ebe6b8690724a0c026d410a11ad7521caa350abdafa5394c3#0"
, "--tx-out", "addr1v9wmu83pzajplrtpsq6tsqdgwr98x888trpmah2u0ezznsge7del3+100000000"
, "--fee", "1000000"
Expand Down
Expand Up @@ -26,6 +26,7 @@ golden_shelleyTxBody = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
-- Create transaction body
void $ execCardanoCLI
[ "transaction", "build-raw"
, "--shelley-era"
, "--tx-in", "91999ea21177b33ebe6b8690724a0c026d410a11ad7521caa350abdafa5394c3#0"
, "--tx-out", "addr1v9wmu83pzajplrtpsq6tsqdgwr98x888trpmah2u0ezznsge7del3+100000000"
, "--fee", "1000000"
Expand Down
1 change: 1 addition & 0 deletions cardano-cli/test/Test/Golden/Shelley/Transaction/Build.hs
Expand Up @@ -25,6 +25,7 @@ golden_shelleyTransactionBuild = propertyOnce $ H.moduleWorkspace "tmp" $ \tempD

void $ execCardanoCLI
[ "transaction","build-raw"
, "--shelley-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--invalid-hereafter", "60"
Expand Down
Expand Up @@ -31,6 +31,7 @@ golden_shelleyTransactionAllMultiSigWitness = propertyOnce $ H.moduleWorkspace "
-- Create tx body file
void $ execCardanoCLI
[ "transaction","build-raw"
, "--shelley-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--invalid-hereafter", "60"
Expand Down Expand Up @@ -64,6 +65,7 @@ golden_shelleyTransactionAnyMultiSigWitness = propertyOnce $ H.moduleWorkspace "
-- Create tx body file
void $ execCardanoCLI
[ "transaction","build-raw"
, "--shelley-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--invalid-hereafter", "60"
Expand Down Expand Up @@ -92,6 +94,7 @@ golden_shelleyTransactionAtLeastMultiSigWitness = propertyOnce $ H.moduleWorkspa
-- Create tx body file
void $ execCardanoCLI
[ "transaction","build-raw"
, "--shelley-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--invalid-hereafter", "60"
Expand Down Expand Up @@ -120,6 +123,7 @@ golden_shelleyTransactionSigningKeyWitness = propertyOnce $ H.moduleWorkspace "t
-- Create tx body file
void $ execCardanoCLI
[ "transaction","build-raw"
, "--shelley-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--invalid-hereafter", "60"
Expand Down

0 comments on commit 4dd7804

Please sign in to comment.