Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix just update-parameters #392

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,21 @@ update-parameters env_file=".env":
forge install

# Run the forge upgrade script
ENV_VARS="L2OO_ADDRESS=$L2OO_ADDRESS"
if [ -n "${EXECUTE_UPGRADE_CALL:-}" ]; then ENV_VARS="$ENV_VARS EXECUTE_UPGRADE_CALL=$EXECUTE_UPGRADE_CALL"; fi
if [ -n "${ADMIN_PK:-}" ]; then ENV_VARS="$ENV_VARS ADMIN_PK=$ADMIN_PK"; fi
if [ -n "${DEPLOY_PK:-}" ]; then ENV_VARS="$ENV_VARS DEPLOY_PK=$DEPLOY_PK"; fi


if [ "${EXECUTE_UPGRADE_CALL:-true}" = "false" ]; then
$ENV_VARS forge script script/OPSuccinctParameterUpdater.s.sol:OPSuccinctParameterUpdater \
env L2OO_ADDRESS="$L2OO_ADDRESS" \
${EXECUTE_UPGRADE_CALL:+EXECUTE_UPGRADE_CALL="$EXECUTE_UPGRADE_CALL"} \
${ADMIN_PK:+ADMIN_PK="$ADMIN_PK"} \
${DEPLOY_PK:+DEPLOY_PK="$DEPLOY_PK"} \
forge script script/OPSuccinctParameterUpdater.s.sol:OPSuccinctParameterUpdater \
--rpc-url $L1_RPC \
--private-key $PRIVATE_KEY \
--broadcast
else
$ENV_VARS forge script script/OPSuccinctParameterUpdater.s.sol:OPSuccinctParameterUpdater \
env L2OO_ADDRESS="$L2OO_ADDRESS" \
${EXECUTE_UPGRADE_CALL:+EXECUTE_UPGRADE_CALL="$EXECUTE_UPGRADE_CALL"} \
${ADMIN_PK:+ADMIN_PK="$ADMIN_PK"} \
${DEPLOY_PK:+DEPLOY_PK="$DEPLOY_PK"} \
forge script script/OPSuccinctParameterUpdater.s.sol:OPSuccinctParameterUpdater \
--rpc-url $L1_RPC \
--private-key $PRIVATE_KEY \
--broadcast
Expand Down
Loading