From 57da116a11f238c180983196cc59b309a44da8c4 Mon Sep 17 00:00:00 2001 From: just-mitch <68168980+just-mitch@users.noreply.github.com> Date: Wed, 15 Jan 2025 10:44:17 -0500 Subject: [PATCH] fix: foundry image doesn't have curl (#11242) Please read [contributing guidelines](CONTRIBUTING.md) and remove this line. --- spartan/aztec-network/templates/boot-node.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spartan/aztec-network/templates/boot-node.yaml b/spartan/aztec-network/templates/boot-node.yaml index b9d38ac3697..3406cd196f6 100644 --- a/spartan/aztec-network/templates/boot-node.yaml +++ b/spartan/aztec-network/templates/boot-node.yaml @@ -62,7 +62,11 @@ spec: # it is possible that even though we asserted this above, the DNS resolver of *this* pod # is not yet ready to resolve the ethereum host. # so we need to wait for it to be ready. - {{- include "aztec-network.waitForEthereum" . | nindent 14 }} + until cast rpc --rpc-url ${ETHEREUM_HOST} eth_chainId | grep 0x; do + echo "Waiting for Ethereum node ${ETHEREUM_HOST}..." + sleep 5 + done + echo "Ethereum node is ready!" if [ "$(cast code --rpc-url ${ETHEREUM_HOST} 0x4e59b44847b379578588920ca78fbf26c0b4956c)" = "0x" ]; then echo "Deploying Deterministic Deployment Proxy" cast publish --rpc-url ${ETHEREUM_HOST} 0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222