Skip to content

Commit 27d0693

Browse files
committed
test: mount tap-contracts to gateway in local-network setup
1 parent ed9531b commit 27d0693

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

setup-test-network.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,26 @@ source local-network/.env
260260
docker build -t local-gateway:latest ./local-network/gateway
261261

262262
echo "Running gateway container..."
263-
# Updated to use the horizon file structure
263+
# Verify required files exist before starting gateway
264+
if [ ! -f "local-network/horizon.json" ]; then
265+
echo "ERROR: local-network/horizon.json not found!"
266+
exit 1
267+
fi
268+
if [ ! -f "local-network/tap-contracts.json" ]; then
269+
echo "ERROR: local-network/tap-contracts.json not found!"
270+
exit 1
271+
fi
272+
if [ ! -f "local-network/subgraph-service.json" ]; then
273+
echo "ERROR: local-network/subgraph-service.json not found!"
274+
exit 1
275+
fi
276+
277+
# Updated to use the horizon file structure and include tap-contracts.json
264278
docker run -d --name gateway \
265279
--network local-network_default \
266280
-p 7700:7700 \
267281
-v "$(pwd)/local-network/horizon.json":/opt/horizon.json:ro \
282+
-v "$(pwd)/local-network/tap-contracts.json":/opt/tap-contracts.json:ro \
268283
-v "$(pwd)/local-network/subgraph-service.json":/opt/subgraph-service.json:ro \
269284
-v "$(pwd)/local-network/.env":/opt/.env:ro \
270285
-e RUST_LOG=info,graph_gateway=trace \

0 commit comments

Comments
 (0)