@@ -34,9 +34,9 @@ cp /shared/shelley/genesis.alonzo.json.base /shared/shelley/genesis.alonzo.json
34
34
echo " Created /shared/conway/genesis.conway.json and /shared/shelley/genesis.alonzo.json"
35
35
36
36
byron_hash=$( /bin/cardano-cli byron genesis print-genesis-hash --genesis-json /shared/byron/genesis.json)
37
- shelley_hash=$( /bin/cardano-cli genesis hash --genesis /shared/shelley/genesis.json)
38
- alonzo_hash=$( /bin/cardano-cli genesis hash --genesis /shared/shelley/genesis.alonzo.json)
39
- conway_hash=$( /bin/cardano-cli genesis hash --genesis /shared/conway/genesis.conway.json)
37
+ shelley_hash=$( /bin/cardano-cli latest genesis hash --genesis /shared/shelley/genesis.json)
38
+ alonzo_hash=$( /bin/cardano-cli latest genesis hash --genesis /shared/shelley/genesis.alonzo.json)
39
+ conway_hash=$( /bin/cardano-cli latest genesis hash --genesis /shared/conway/genesis.conway.json)
40
40
41
41
/busybox sed " s/\" ByronGenesisHash\" : \" [^\" ]*\" /\" ByronGenesisHash\" : \" $byron_hash \" /" /shared/node-1-config.json.base > /shared/node-1-config.json.base.byron
42
42
/busybox sed " s/\" ByronGenesisHash\" : \" [^\" ]*\" /\" ByronGenesisHash\" : \" $byron_hash \" /" /shared/node-2-config.json.base > /shared/node-2-config.json.base.byron
99
99
100
100
echo " Generating new address and funding it with 2 UTXOs from the genesis address"
101
101
102
- new_address=$( cardano-cli address build \
102
+ new_address=$( cardano-cli latest address build \
103
103
--payment-verification-key-file /keys/funded_address.vkey \
104
104
--testnet-magic 42)
105
105
@@ -127,7 +127,7 @@ fee=1000000
127
127
change=$(( tx_in_amount - total_output - fee))
128
128
129
129
# Build the raw transaction
130
- cardano-cli transaction build-raw \
130
+ cardano-cli latest transaction build-raw \
131
131
--tx-in $tx_in1 \
132
132
--tx-out " $new_address +$tx_out1 " \
133
133
--tx-out " $new_address +$tx_out2 " \
@@ -138,7 +138,7 @@ cardano-cli transaction build-raw \
138
138
--out-file /data/tx.raw
139
139
140
140
# Sign the transaction
141
- cardano-cli transaction sign \
141
+ cardano-cli latest transaction sign \
142
142
--tx-body-file /data/tx.raw \
143
143
--signing-key-file /shared/shelley/genesis-utxo.skey \
144
144
--testnet-magic 42 \
@@ -150,7 +150,7 @@ echo "Transaction prepared, waiting 20 seconds for other nodes to start..."
150
150
sleep 20
151
151
152
152
echo " Submitting transaction..."
153
- cardano-cli transaction submit \
153
+ cardano-cli latest transaction submit \
154
154
--tx-file /data/tx.signed \
155
155
--testnet-magic 42
156
156
@@ -160,17 +160,17 @@ echo "Balance:"
160
160
161
161
# Query UTXOs at new_address, dave_address, and eve_address
162
162
echo " Querying UTXO for new_address:"
163
- cardano-cli query utxo \
163
+ cardano-cli latest query utxo \
164
164
--testnet-magic 42 \
165
165
--address $new_address
166
166
167
167
echo " Querying UTXO for Dave address:"
168
- cardano-cli query utxo \
168
+ cardano-cli latest query utxo \
169
169
--testnet-magic 42 \
170
170
--address $dave_address
171
171
172
172
echo " Querying UTXO for Eve address:"
173
- cardano-cli query utxo \
173
+ cardano-cli latest query utxo \
174
174
--testnet-magic 42 \
175
175
--address $eve_address
176
176
@@ -179,12 +179,12 @@ echo $new_address > /shared/FUNDED_ADDRESS
179
179
echo " Created /shared/FUNDED_ADDRESS with value: $new_address "
180
180
181
181
echo " Querying and saving the first UTXO details for Dave address to /shared/dave.utxo:"
182
- cardano-cli query utxo --testnet-magic 42 --address " ${dave_address} " | /busybox awk ' NR>2 { print $1 "#" $2; exit }' > /shared/dave.utxo
182
+ cardano-cli latest query utxo --testnet-magic 42 --address " ${dave_address} " | /busybox awk ' NR>2 { print $1 "#" $2; exit }' > /shared/dave.utxo
183
183
echo " UTXO details for Dave saved in /shared/dave.utxo."
184
184
cat /shared/dave.utxo
185
185
186
186
echo " Querying and saving the first UTXO details for Eve address to /shared/eve.utxo:"
187
- cardano-cli query utxo --testnet-magic 42 --address " ${eve_address} " | /busybox awk ' NR>2 { print $1 "#" $2; exit }' > /shared/eve.utxo
187
+ cardano-cli latest query utxo --testnet-magic 42 --address " ${eve_address} " | /busybox awk ' NR>2 { print $1 "#" $2; exit }' > /shared/eve.utxo
188
188
echo " UTXO details for Eve saved in /shared/eve.utxo."
189
189
cat /shared/eve.utxo
190
190
0 commit comments