Skip to content

Commit

Permalink
Default to alonzo era in the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Nov 3, 2021
1 parent b6c7928 commit 66aa8ba
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs
Expand Up @@ -1842,7 +1842,7 @@ pCardanoEra = asum
)

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

pTxIn :: BalanceTxExecUnits
Expand Down
Expand Up @@ -26,6 +26,7 @@ golden_shelleyTxBody = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
-- Create transaction body
void $ execCardanoCLI
[ "transaction", "build-raw"
, "--mary-era"
, "--tx-in", "91999ea21177b33ebe6b8690724a0c026d410a11ad7521caa350abdafa5394c3#0"
, "--tx-out", "addr1v9wmu83pzajplrtpsq6tsqdgwr98x888trpmah2u0ezznsge7del3+100000000"
, "--fee", "1000000"
Expand Down
5 changes: 5 additions & 0 deletions cardano-cli/test/Test/Golden/Shelley/Transaction/Build.hs
Expand Up @@ -34,6 +34,7 @@ golden_shelleyTransactionBuild =

void $ execCardanoCLI
[ "transaction","build-raw"
, "--mary-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--fee", "12"
Expand All @@ -55,6 +56,7 @@ golden_shelleyTransactionBuild_CertificateScriptWitnessed =

void $ execCardanoCLI
[ "transaction","build-raw"
, "--mary-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--certificate-file", deregcert, "--certificate-script-file", scriptWit
Expand Down Expand Up @@ -86,6 +88,7 @@ golden_shelleyTransactionBuild_Minting =

void $ execCardanoCLI
[ "transaction","build-raw"
, "--mary-era"
, "--tx-in", txIn
, "--tx-out", txOut ++ "+" ++ dummyMA, "--minting-script-file", scriptWit
, "--mint", dummyMA
Expand All @@ -109,6 +112,7 @@ golden_shelleyTransactionBuild_WithdrawalScriptWitnessed =

void $ execCardanoCLI
[ "transaction","build-raw"
, "--mary-era"
, "--tx-in", txIn
, "--tx-out", txOut
, "--withdrawal", withdrawal, "--withdrawal-script-file", scriptWit
Expand All @@ -129,6 +133,7 @@ golden_shelleyTransactionBuild_TxInScriptWitnessed =

void $ execCardanoCLI
[ "transaction","build-raw"
, "--mary-era"
, "--tx-in", txIn, "--txin-script-file", scriptWit
, "--tx-out", txOut
, "--fee", "12"
Expand Down
2 changes: 1 addition & 1 deletion cardano-submit-api/README.md
Expand Up @@ -77,7 +77,7 @@ Build a raw transaction:

```bash
playground $ cardano-cli transaction build-raw \
--mary-era \
--alonzo-era \
--tx-in "$txhash#0" \
--tx-out "$(cat testnet-user-1-payment.addr)+$remaining" \
--tx-out "$(cat testnet-user-2-payment.addr)+1000000" \
Expand Down
2 changes: 1 addition & 1 deletion doc/reference/multi-assets.md
Expand Up @@ -90,7 +90,7 @@ cardano-cli transaction submit --tx-file tx --testnet-magic 42

```bash
cardano-cli transaction build-raw \
--mary-era \
--alonzo-era \
--fee 0 \
--tx-in $TXIN \
--tx-out $TXOUT\
Expand Down
3 changes: 2 additions & 1 deletion doc/reference/shelley-genesis.md
Expand Up @@ -1445,7 +1445,8 @@ Available options:
--byron-era Specify the Byron era
--shelley-era Specify the Shelley era
--allegra-era Specify the Allegra era
--mary-era Specify the Mary era (default)
--mary-era Specify the Mary era
--alonzo-era Specify the Alonzo era (default)
--tx-in TX-IN TxId#TxIx
--txin-script-file FILE Filepath of the spending script witness
--tx-out TX-OUT The transaction output as Address+Lovelace where
Expand Down

0 comments on commit 66aa8ba

Please sign in to comment.