Skip to content

Commit

Permalink
change script order
Browse files Browse the repository at this point in the history
  • Loading branch information
Keszey Dániel authored and Keszey Dániel committed Oct 31, 2024
1 parent f01de37 commit c26278e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/protocol/scripts/setup_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ echo "Running forge foundry script..."
FORGE_OUTPUT=$(eval $FORGE_COMMAND | tee /dev/tty)
echo "Script execution completed."

# Extract the path to run-latest.json
RUN_LATEST_PATH=$(echo "$FORGE_OUTPUT" | grep "Transactions saved to:" | sed 's/Transactions saved to: //')

# Run the verification script
echo "Starting contract verification..."
BLOCKSCOUT_PORT=$(cat /tmp/kurtosis_blockscout_port)
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
"$SCRIPT_DIR/verify_contracts.sh" "$BLOCKSCOUT_PORT" "$RUN_LATEST_PATH"

# Ensure the log file exists in the current working directory
touch ./rbuilder.log
Expand Down Expand Up @@ -217,12 +225,3 @@ else
kill $FILE_LOG_PID
exit 1
fi

# Extract the path to run-latest.json
RUN_LATEST_PATH=$(echo "$FORGE_OUTPUT" | grep "Transactions saved to:" | sed 's/Transactions saved to: //')

# Run the verification script
echo "Starting contract verification..."
BLOCKSCOUT_PORT=$(cat /tmp/kurtosis_blockscout_port)
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
"$SCRIPT_DIR/verify_contracts.sh" "$BLOCKSCOUT_PORT" "$RUN_LATEST_PATH"

0 comments on commit c26278e

Please sign in to comment.