This commit is contained in:
tim
2025-09-15 15:15:12 -04:00
parent b53fc444cb
commit f7e40eee06
2 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/bash
CODE_SIZE_LIMIT=65000
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
# Function to cleanup processes
cleanup() {
@@ -12,7 +14,7 @@ trap cleanup EXIT
mkdir -p log
# Run anvil in background and redirect output to log file
anvil | tee log/anvil.txt &
anvil --code-size-limit ${CODE_SIZE_LIMIT} | tee log/anvil.txt &
ANVIL_PID=$!
# Function to check if string exists in file
@@ -33,7 +35,7 @@ while ! check_string "Listening on" "log/anvil.txt"; do
fi
done
forge script DeployMock --broadcast "$@"
forge script --code-size-limit ${CODE_SIZE_LIMIT} --private-key ${PRIVATE_KEY} DeployMock --fork-url http://localhost:8545 --broadcast "$@"
echo "Press Ctrl+C to exit..."
while true; do