File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
mithril-test-lab/mithril-devnet/mkfiles Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,10 @@ function send_funds_to_era_address {
97
97
98
98
## Compute the submitted transaction id
99
99
TX_ID_SUBMITTED=\$ (CARDANO_NODE_SOCKET_PATH=node-pool${N} /ipc/node.sock $CARDANO_CLI \$ {CURRENT_CARDANO_ERA} transaction txid --tx-file node-pool${N} /tx/tx${N} -era-funds.tx)
100
-
100
+ if [[ "\$ {TX_ID_SUBMITTED}" =~ txhash ]]; then
101
+ TX_ID_SUBMITTED=\$ (echo \$ TX_ID_SUBMITTED | jq -r '.txhash')
102
+ fi
103
+
101
104
## Wait at least for 10 blocks so that the transaction is confirmed
102
105
wait_for_elapsed_blocks 10
103
106
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ cat >> payment-mithril.sh <<EOF
121
121
122
122
## Compute the submitted transaction id
123
123
TX_ID_SUBMITTED=\$ ($CARDANO_CLI \$ {CURRENT_CARDANO_ERA} transaction txid --tx-file node-pool${i} /tx/tx${i} -payment-funds.tx)
124
+ if [[ "\$ {TX_ID_SUBMITTED}" =~ txhash ]]; then
125
+ TX_ID_SUBMITTED=\$ (echo \$ TX_ID_SUBMITTED | jq -r '.txhash')
126
+ fi
124
127
125
128
## Retrieve the on-chain transaction id
126
129
TX_IN_ON_CHAIN=\$ (CARDANO_NODE_SOCKET_PATH=node-pool${N} /ipc/node.sock $CARDANO_CLI \$ {CURRENT_CARDANO_ERA} query utxo \\
You can’t perform that action at this time.
0 commit comments