Skip to content

Commit cb9808f

Browse files
committed
correct paths after big-rename changes, dont fail silently on contract deploy
1 parent dc3ac5f commit cb9808f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

apps/randomness/start-local-randomness.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ echo "Setting environment variable $HAPPY_GENESIS_ENV_VAR to $genesis_timestamp"
193193
set_env_var .env $HAPPY_GENESIS_ENV_VAR $genesis_timestamp false
194194

195195
echo "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

198202
echo "Contracts deployed"
199203

@@ -206,12 +210,13 @@ echo "Drand round: $round"
206210
echo "Setting environment variable $DRAND_ROUND_ENV_VAR to $round"
207211
set_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

211216
empty_sqlite_db $TXM_DB_PATH
212217
echo $TXM_DB_PATH
213218
export TXM_DB_PATH=$TXM_DB_PATH
214-
make -C $SCRIPT_DIR/../transaction-manager migrate
219+
make -C $SCRIPT_DIR/../../packages/txm migrate
215220

216221
echo "Transaction manager migrated"
217222

0 commit comments

Comments
 (0)