Skip to content

Commit e74d2d3

Browse files
committed
fix(test): Ensure contracts are mined before verification
1 parent f91ba7b commit e74d2d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup-test-network.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ docker compose up -d graph-contracts
7474
# Wait for contracts to be deployed
7575
timeout 300 bash -c 'until docker ps -a | grep graph-contracts | grep -q "Exited (0)"; do sleep 5; done'
7676

77+
# Before checking the smart contract, ensure they make it to the local network
78+
# by mining some blocks
79+
./scripts/mine-block.sh 100 2>/dev/null || true
80+
7781
# Verify the contracts have code
7882
graph_token_address=$(jq -r '."1337".GraphToken.address' contracts.json)
7983
controller_address=$(jq -r '."1337".Controller.address' contracts.json)

0 commit comments

Comments
 (0)