Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Jul 25, 2024
1 parent 5587241 commit 6b07b47
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions script/tasks/diamondEMERGENCYPauseGitHub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function handleNetwork() {
fi

echo "[network: $NETWORK] matching registered pauser wallet $PRIV_KEY_ADDRESS in diamond ($DIAMOND_ADDRESS) with private key supplied"
# this fails currently since the EmergencyPauseFacet is not yet deployed to all diamonds
DIAMOND_PAUSER_WALLET=$(cast call "$DIAMOND_ADDRESS" "pauserWallet() external returns (address)" --rpc-url "$RPC_URL")

# compare addresses in lowercase format
Expand Down Expand Up @@ -137,25 +138,13 @@ function main {
handleNetwork "$NETWORK" "$PRIVATE_KEY_PAUSER_WALLET" &
done

echo "HERE"

# Wait for all background jobs to finish
# Wait for all background jobs to finish
wait

echo "THERE"
# Check exit status of each background job
for JOB in $(jobs -p); do
wait $JOB || RETURN=1
done

echo "endeeeeeeeee"
# End script according to return status
if [ "$RETURN" == 1 ]; then
exit 1
else
return 0
fi

echo "[info] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< script diamondEMERGENCYPause completed"
}

Expand Down

0 comments on commit 6b07b47

Please sign in to comment.