Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Aug 30, 2022
1 parent 8387738 commit 289b7e4
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions scripts/babbage/example-babbage-script-usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export UTXO_SKEY="${UTXO_SKEY:-example/utxo-keys/utxo1.skey}"
export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

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

#Get read only reference input
# Get read only reference input
$CARDANO_CLI query utxo --address "$readonlyaddress" --cardano-mode \
--testnet-magic "$TESTNET_MAGIC" --out-file $WORK/read-only-ref-input-utxo.json
readonlyrefinput=$(jq -r 'keys[0]' $WORK/read-only-ref-input-utxo.json)
Expand Down
6 changes: 3 additions & 3 deletions scripts/babbage/script-context-equivalance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
mkdir -p "$WORK"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

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


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

mkdir -p "$WORK"
Expand Down Expand Up @@ -96,14 +96,14 @@ dummyaddress=addr_test1vpqgspvmh6m2m5pwangvdg499srfzre2dd96qq57nlnw6yctpasy4

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

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



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

Expand Down
3 changes: 1 addition & 2 deletions scripts/babbage/script-mint-context-equivalance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
mkdir -p "$WORK"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

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


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

Expand Down
1 change: 0 additions & 1 deletion scripts/lite/example-build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export RESULT_FILE_TARGET="${RESULT_FILE:-$WORK/target.out}"
export RESULT_FILE_CHANGE="${RESULT_FILE:-$WORK/change.out}"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

Expand Down
1 change: 0 additions & 1 deletion scripts/lite/split-txouts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export RESULT_FILE_TARGET="${RESULT_FILE:-$WORK/target.out}"
export RESULT_FILE_CHANGE="${RESULT_FILE:-$WORK/change.out}"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

count="${1:-1000000}"

Expand Down
1 change: 0 additions & 1 deletion scripts/plutus/always-fails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
export PV=v1 # Plutus Script Version

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

Expand Down
1 change: 0 additions & 1 deletion scripts/plutus/example-txin-locking-plutus-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export UTXO_SKEY="${UTXO_SKEY:-example/utxo-keys/utxo1.skey}"
export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

Expand Down
3 changes: 1 addition & 2 deletions scripts/plutus/script-context-equivalance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export RESULT_FILE="${RESULT_FILE:-$WORK/result.out}"
export PV=v1 # Plutus Script Version

echo "Socket path: $CARDANO_NODE_SOCKET_PATH"
echo "Socket path: $(pwd)"

ls -al "$CARDANO_NODE_SOCKET_PATH"

Expand Down Expand Up @@ -94,7 +93,7 @@ echo "$plutusutxotxin"
echo "Collateral"
echo "$txinCollateral"

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

Expand Down

0 comments on commit 289b7e4

Please sign in to comment.