PartyPlanner; chain.json

This commit is contained in:
tim
2025-09-20 16:04:31 -04:00
parent 9fe0179e6a
commit 10d432070d
12 changed files with 1133 additions and 317 deletions

View File

@@ -10,6 +10,11 @@ cleanup() {
kill $ANVIL_PID 2>/dev/null
}
err() {
cleanup
exit $1
}
# Set up trap to handle script exit
trap cleanup EXIT
@@ -38,7 +43,7 @@ while ! check_string "Listening on" "log/anvil.txt"; do
fi
done
forge script --code-size-limit ${CODE_SIZE_LIMIT} --private-key ${PRIVATE_KEY} DeployMock --fork-url http://localhost:8545 --broadcast "$@"
forge script --code-size-limit ${CODE_SIZE_LIMIT} --private-key ${PRIVATE_KEY} DeployMock --fork-url http://localhost:8545 --broadcast "$@" || err 1
echo "Press Ctrl+C to exit..."
while true; do