Skip to content

Commit 289b7e4

Browse files
committed
Review fixes
1 parent 8387738 commit 289b7e4

8 files changed

+6
-13
lines changed

scripts/babbage/example-babbage-script-usage.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export UTXO_SKEY="${UTXO_SKEY:-example/utxo-keys/utxo1.skey}"
1515
export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1616

1717
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
18-
echo "Socket path: $(pwd)"
1918

2019
ls -al "$CARDANO_NODE_SOCKET_PATH"
2120

@@ -110,7 +109,7 @@ $CARDANO_CLI query utxo --address $plutusspendingscriptaddr --testnet-magic "$TE
110109
plutuslockedutxotxin=$(jq -r 'keys[0]' $WORK/plutusutxo.json)
111110
lovelaceatplutusspendingscriptaddr=$(jq -r ".[\"$plutuslockedutxotxin\"].value.lovelace" $WORK/plutusutxo.json)
112111

113-
#Get read only reference input
112+
# Get read only reference input
114113
$CARDANO_CLI query utxo --address "$readonlyaddress" --cardano-mode \
115114
--testnet-magic "$TESTNET_MAGIC" --out-file $WORK/read-only-ref-input-utxo.json
116115
readonlyrefinput=$(jq -r 'keys[0]' $WORK/read-only-ref-input-utxo.json)

scripts/babbage/script-context-equivalance-test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1717
mkdir -p "$WORK"
1818

1919
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
20-
echo "Socket path: $(pwd)"
2120

2221
ls -al "$CARDANO_NODE_SOCKET_PATH"
2322

@@ -40,6 +39,7 @@ cardano-cli stake-address registration-certificate \
4039

4140

4241
plutusscriptaddr=$($CARDANO_CLI address build --payment-script-file "$plutusscriptinuse" --testnet-magic "$TESTNET_MAGIC")
42+
# The input at the readonlyaddress will be used as a reference input
4343
readonlyaddress=addr_test1vz3t3f2kgy2re66tnhgxc4t8jgylw2cqfnxdwlrq9agfmtstxxkm5
4444

4545
mkdir -p "$WORK"
@@ -96,14 +96,14 @@ dummyaddress=addr_test1vpqgspvmh6m2m5pwangvdg499srfzre2dd96qq57nlnw6yctpasy4
9696

9797
lovelaceatplutusscriptaddr=$(jq -r ".[\"$plutusutxotxin\"].value.lovelace" $WORK/plutusutxo.json)
9898

99-
#Get read only reference input
99+
# Get read only reference input
100100
$CARDANO_CLI query utxo --address "$readonlyaddress" --cardano-mode \
101101
--testnet-magic "$TESTNET_MAGIC" --out-file $WORK/read-only-ref-input-utxo.json
102102
readonlyrefinput=$(jq -r 'keys[0]' $WORK/read-only-ref-input-utxo.json)
103103

104104

105105

106-
# We need to generate a dummy redeemer in order to create a txbody from which we can generate
106+
# We need to generate a dummy redeemer (the cli demands a redeemer) in order to create a txbody from which we can generate
107107
# a tx and then derive the correct redeemer.
108108
create-script-context --plutus-v2 --out-file "$WORK/script-context.redeemer"
109109

scripts/babbage/script-mint-context-equivalance-test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1717
mkdir -p "$WORK"
1818

1919
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
20-
echo "Socket path: $(pwd)"
2120

2221
ls -al "$CARDANO_NODE_SOCKET_PATH"
2322

@@ -70,7 +69,7 @@ txinfunding1=$(jq -r 'keys[1]' $WORK/utxo-2.json)
7069
dummyaddress=addr_test1vpqgspvmh6m2m5pwangvdg499srfzre2dd96qq57nlnw6yctpasy4
7170

7271

73-
# We need to generate a dummy redeemer in order to create a txbody from which we can generate
72+
# We need to generate a dummy redeemer (the cli demands a redeemer) in order to create a txbody from which we can generate
7473
# a tx and then derive the correct redeemer.
7574
create-script-context --plutus-v2 --out-file "$WORK/script-context.redeemer"
7675

scripts/lite/example-build-cmd.sh

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export RESULT_FILE_TARGET="${RESULT_FILE:-$WORK/target.out}"
1616
export RESULT_FILE_CHANGE="${RESULT_FILE:-$WORK/change.out}"
1717

1818
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
19-
echo "Socket path: $(pwd)"
2019

2120
ls -al "$CARDANO_NODE_SOCKET_PATH"
2221

scripts/lite/split-txouts.sh

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export RESULT_FILE_TARGET="${RESULT_FILE:-$WORK/target.out}"
1717
export RESULT_FILE_CHANGE="${RESULT_FILE:-$WORK/change.out}"
1818

1919
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
20-
echo "Socket path: $(pwd)"
2120

2221
count="${1:-1000000}"
2322

scripts/plutus/always-fails.sh

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1616
export PV=v1 # Plutus Script Version
1717

1818
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
19-
echo "Socket path: $(pwd)"
2019

2120
ls -al "$CARDANO_NODE_SOCKET_PATH"
2221

scripts/plutus/example-txin-locking-plutus-script.sh

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export UTXO_SKEY="${UTXO_SKEY:-example/utxo-keys/utxo1.skey}"
1515
export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1616

1717
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
18-
echo "Socket path: $(pwd)"
1918

2019
ls -al "$CARDANO_NODE_SOCKET_PATH"
2120

scripts/plutus/script-context-equivalance-test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
1616
export PV=v1 # Plutus Script Version
1717

1818
echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
19-
echo "Socket path: $(pwd)"
2019

2120
ls -al "$CARDANO_NODE_SOCKET_PATH"
2221

@@ -94,7 +93,7 @@ echo "$plutusutxotxin"
9493
echo "Collateral"
9594
echo "$txinCollateral"
9695

97-
# We need to generate a dummy redeemer in order to create a txbody from which we can generate
96+
# We need to generate a dummy redeemer (the cli demands a redeemer) in order to create a txbody from which we can generate
9897
# a tx and then derive the correct redeemer.
9998
create-script-context --out-file "$WORK/script-context.redeemer"
10099

0 commit comments

Comments
 (0)