Skip to content

Commit cdef9ca

Browse files
committed
only specify rpc url when it is not a dry run
1 parent ddbcbff commit cdef9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ echo
5858
export MANAGER_ADDRESS=$MANAGER_ADDRESS
5959

6060
# Build forge command with dry-run support
61-
FORGE_CMD="forge script script/DeployKeyManager.s.sol:DeployKeyManager --rpc-url $RPC_URL"
61+
FORGE_CMD="forge script script/DeployKeyManager.s.sol:DeployKeyManager"
6262

6363
if [ "$DRY_RUN" = true ]; then
6464
echo "Running simulation (dry run)"
@@ -70,7 +70,7 @@ else
7070
exit 1
7171
fi
7272
echo "Network is reachable. Running deployment..."
73-
FORGE_CMD="$FORGE_CMD --broadcast"
73+
FORGE_CMD="$FORGE_CMD --rpc-url $RPC_URL --broadcast"
7474
fi
7575

7676
# fix mnemonic quotes

0 commit comments

Comments
 (0)