Skip to content

Commit 73c37e6

Browse files
palascarbolymer
authored andcommitted
Ensure files are deleted after funding
1 parent ce77637 commit 73c37e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts-demo/fund.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set -euo pipefail
66

7-
trap 'rm -f fundint.txbody' EXIT
7+
trap 'rm -f funding.txbody' EXIT
88
rm -f funding.txbody funding.tx
99

1010
run_cardano_cli() {
@@ -18,3 +18,4 @@ SRC_UTXO=$(run_cardano_cli latest query utxo --address "$SRC_ADDR" | jq -r 'keys
1818
run_cardano_cli latest transaction build --tx-in "$SRC_UTXO" --tx-out "$1+$2" --change-address "$SRC_ADDR" --out-file funding.txbody
1919
run_cardano_cli latest transaction sign --tx-body-file funding.txbody --signing-key-file testnet-data/utxo-keys/utxo1/utxo.skey --out-file funding.tx
2020
run_cardano_cli latest transaction submit --tx-file funding.tx
21+
rm -f funding.txbody funding.tx

0 commit comments

Comments
 (0)