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

fix: deploy l1 gateway directly from contracts dir #538

Merged
merged 2 commits into from
Dec 17, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,18 @@ job "{{ job.name }}" {
{{ end }}
{% endraw %}
export L1_OWNER_ADDRESS=${SENDER} #TODO: this should be a multisig address on mainnet.
LOGS="$(${CONTRACT_REPO_ROOT_PATH}/entrypoint.sh)"

# --verify flag in entrypoint.sh only works when running forge script from the contracts directory.
# Here we setup the environment variables to function when cd'ing into the contracts directory.
cd ${CONTRACT_REPO_ROOT_PATH}
export FORGE_BIN_PATH="../../${XDG_CONFIG_HOME}/.foundry/bin/forge"
export SCRIPT_PATH_PREFIX="scripts"
export CONTRACT_REPO_ROOT_PATH="./"
LOGS="$(./entrypoint.sh)"

# Now cd back to previous directory.
cd ../../

if [ $? -ne 0 ]; then
echo "Failed to deploy contracts!"
echo "${LOGS}"
Expand Down
Loading