Skip to content

Commit

Permalink
fixed verification to pass in api-key info
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDeadCe11 committed Sep 17, 2024
1 parent 44db5b3 commit 5ad3578
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions script/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ source .env

set -e


##########
## HELP ##
##########
Expand Down Expand Up @@ -70,7 +69,6 @@ fi
## FUNCTIONS ##
###############


function simulate() {
forge script $1 --sig $2 --rpc-url $3 --account $DEPLOYER_ACCOUNT_NAME --sender $DEPLOYER_ADDRESS
}
Expand All @@ -80,7 +78,7 @@ function broadcast() {
}

function verify() {
forge script $1 --sig $2 --rpc-url $3 --account $DEPLOYER_ACCOUNT_NAME --sender $DEPLOYER_ADDRESS --verify
forge script $1 --sig $2 --rpc-url $3 --account $DEPLOYER_ACCOUNT_NAME --sender $DEPLOYER_ADDRESS --verify --etherscan-api-key $3
}

function broadcastAndVerify() {
Expand Down Expand Up @@ -158,7 +156,7 @@ function runScript() {
[Yy]*)
broadcast $SCRIPT $CALLDATA $RPC
;;
*)
*)
echo "Skipping broadcast"
return
;;
Expand All @@ -170,7 +168,7 @@ function runScript() {
[Yy]*)
verify $SCRIPT $CALLDATA $RPC
;;
*)
*)
echo "Skipping verifcation"
return
;;
Expand Down

0 comments on commit 5ad3578

Please sign in to comment.