Skip to content

Commit

Permalink
Making Sepolia deployment script less path dependent (#137)
Browse files Browse the repository at this point in the history
Making script less path dependent
  • Loading branch information
thomas192 committed Apr 5, 2024
1 parent 0703581 commit 1bb07c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy-blobstreamx.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

PROJECT_ROOT=`git rev-parse --show-toplevel`

# Load env variable from `.env` only if they're not already set
if [ -z "$STARKNET_KEYSTORE" ] || [ -z "$STARKNET_ACCOUNT" ]; then
source ../.env
source $PROJECT_ROOT/.env
fi

# Check if required env variables are set, if not exit
Expand All @@ -15,7 +17,7 @@ elif [ -z "$STARKNET_ACCOUNT" ]; then
fi

# Constants
SIERRA_FILE=../target/dev/blobstream_sn_blobstreamx.contract_class.json
SIERRA_FILE=$PROJECT_ROOT/target/dev/blobstream_sn_blobstreamx.contract_class.json
# Optional arguments
HERODOTUS_FACTS_REGISTRY_ADDRESS="0x07d3550237ecf2d6ddef9b78e59b38647ee511467fe000ce276f245a006b40bc"
BLOBSTREAMX_L1_ADDRESS="0x48B257EC1610d04191cC2c528d0c940AdbE1E439"
Expand Down

0 comments on commit 1bb07c1

Please sign in to comment.