Skip to content

Commit

Permalink
Update contracts-deployer.nomad.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Dec 17, 2024
1 parent 8526536 commit 3459645
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,17 @@ 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.
export FORGE_BIN_PATH="../../${XDG_CONFIG_HOME}/.foundry/bin/forge"
export SCRIPT_PATH_PREFIX="scripts"
export CONTRACT_REPO_ROOT_PATH="./"
LOGS="$(cd ${CONTRACT_REPO_ROOT_PATH} && ./entrypoint.sh)"

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

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

0 comments on commit 3459645

Please sign in to comment.