File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,7 +193,11 @@ echo "Setting environment variable $HAPPY_GENESIS_ENV_VAR to $genesis_timestamp"
193193set_env_var .env $HAPPY_GENESIS_ENV_VAR $genesis_timestamp false
194194
195195echo " Deploying contracts..."
196- make -C $SCRIPT_DIR /../contracts deploy-random > $SCRIPT_DIR /logs/deploy-random.log 2>&1
196+ make -C $SCRIPT_DIR /../../contracts deploy-random > $SCRIPT_DIR /logs/deploy-random.log 2>&1
197+ if [[ $? -ne 0 ]]; then
198+ echo " Error: Failed to deploy contracts. Check the log file for details: $SCRIPT_DIR /logs/deploy-random.log"
199+ exit 1
200+ fi
197201
198202echo " Contracts deployed"
199203
@@ -206,12 +210,13 @@ echo "Drand round: $round"
206210echo " Setting environment variable $DRAND_ROUND_ENV_VAR to $round "
207211set_env_var .env $DRAND_ROUND_ENV_VAR $round false
208212
209- make -C $SCRIPT_DIR /../transaction-manager build
213+ make -C $SCRIPT_DIR /../../packages/txm build
214+
210215
211216empty_sqlite_db $TXM_DB_PATH
212217echo $TXM_DB_PATH
213218export TXM_DB_PATH=$TXM_DB_PATH
214- make -C $SCRIPT_DIR /../transaction-manager migrate
219+ make -C $SCRIPT_DIR /../../packages/txm migrate
215220
216221echo " Transaction manager migrated"
217222
You can’t perform that action at this time.
0 commit comments