Skip to content

Commit 57b9104

Browse files
committed
Update cardano-cli invokations
1 parent 020b7f4 commit 57b9104

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/generate-testnet-config.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
4141
chmod 700 -R "$CONFIG"
4242
43-
cardano-cli genesis create-staked --genesis-dir "$CONFIG" \
43+
cardano-cli latest genesis create-staked --genesis-dir "$CONFIG" \
4444
--testnet-magic "$NETWORK_MAGIC" \
4545
--gen-pools 1 \
4646
--supply $SUPPLY \

tests/spend-utxo-testscript.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
text = let
1212
utxo-keys = "${./local-testnet-config}/utxo-keys";
1313
in ''
14-
trap 'echo "# $BASH_COMMAND"' DEBUG
14+
set -x
1515
1616
cardano-cli query tip --testnet-magic 2
1717
cardano-cli query utxo --whole-utxo --testnet-magic 2
@@ -31,15 +31,15 @@
3131
WALLET_ADDR="$(cat /tmp/wallet.addr)"
3232
TXOUT="$(cat "/tmp/wallet.addr")+$SEND_AMT"
3333
34-
cardano-cli transaction build \
34+
cardano-cli latest transaction build \
3535
--testnet-magic 2 \
3636
--change-address "$WALLET_ADDR" \
3737
--tx-in "$TXIN" \
3838
--tx-out "$TXOUT" \
3939
--out-file "/tmp/tx.body" \
4040
--witness-override 2
4141
42-
cardano-cli transaction sign \
42+
cardano-cli latest transaction sign \
4343
--tx-body-file "/tmp/tx.body" \
4444
--signing-key-file "${utxo-keys}/utxo1.skey" \
4545
--testnet-magic 2 \
@@ -57,7 +57,7 @@
5757
--out-file=/dev/stdout \
5858
| jq -e "length == 1"
5959
60-
cardano-cli transaction submit \
60+
cardano-cli latest transaction submit \
6161
--tx-file "/tmp/tx.signed" \
6262
--testnet-magic 2
6363

0 commit comments

Comments
 (0)