mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
removing checks
This commit is contained in:
parent
535e7e5677
commit
8c62f82325
1 changed files with 26 additions and 26 deletions
52
.github/workflows/deploy-devnet.yml
vendored
52
.github/workflows/deploy-devnet.yml
vendored
|
|
@ -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: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue