removing checks

This commit is contained in:
Yohan9206 2025-08-04 00:31:36 +03:00
parent 535e7e5677
commit 8c62f82325

View file

@ -52,36 +52,36 @@ jobs:
echo "$DEPLOY_OUTPUT" > deploy.log echo "$DEPLOY_OUTPUT" > deploy.log
echo "CONTRACT_ADDRESS=$(echo \"$DEPLOY_OUTPUT\" | grep -i 'Lock deployed to:' | awk '{ print $NF }')" >> $GITHUB_ENV echo "CONTRACT_ADDRESS=$(echo \"$DEPLOY_OUTPUT\" | grep -i 'Lock deployed to:' | awk '{ print $NF }')" >> $GITHUB_ENV
- name: Retry contract verification on Blockscout # - name: Retry contract verification on Blockscout
working-directory: ./hardhat # working-directory: ./hardhat
run: | # run: |
echo "🔍 Verifying contract at $CONTRACT_ADDRESS" # echo "🔍 Verifying contract at $CONTRACT_ADDRESS"
for i in {1..5}; do # for i in {1..5}; do
npx hardhat verify --network localhost $CONTRACT_ADDRESS && break # npx hardhat verify --network localhost $CONTRACT_ADDRESS && break
echo "Retry $i: Verification failed. Waiting for Blockscout sync..." # echo "Retry $i: Verification failed. Waiting for Blockscout sync..."
sleep 10 # sleep 10
done # done
- name: Confirm contract is visible in Blockscout # - name: Confirm contract is visible in Blockscout
run: | # run: |
echo "Waiting for Blockscout explorer to index contract..." # echo "Waiting for Blockscout explorer to index contract..."
for i in {1..30}; do # for i in {1..30}; do
CODE=$(curl -s http://localhost:4000/api \ # CODE=$(curl -s http://localhost:4000/api \
-d "module=contract" \ # -d "module=contract" \
-d "action=getsourcecode" \ # -d "action=getsourcecode" \
-d "address=$CONTRACT_ADDRESS" | jq -r '.result[0].SourceCode') # -d "address=$CONTRACT_ADDRESS" | jq -r '.result[0].SourceCode')
if [ "$CODE" != "" ] && [ "$CODE" != "null" ]; then # if [ "$CODE" != "" ] && [ "$CODE" != "null" ]; then
echo "✅ Contract is now visible in Blockscout" # echo "✅ Contract is now visible in Blockscout"
exit 0 # exit 0
fi # fi
echo "⏳ Not indexed yet, retrying ($i)..." # echo "⏳ Not indexed yet, retrying ($i)..."
sleep 5 # sleep 5
done # done
echo "❌ Contract not found in Blockscout after timeout." # echo "❌ Contract not found in Blockscout after timeout."
exit 1 # exit 1
- name: Commit container with deployed contracts - name: Commit container with deployed contracts
run: | run: |