Skip to content

Commit 45e1fad

Browse files
authored
chore: Bump foundry version to 1.3.3 (#16669)
We're getting flakes in tests where we fail to retrieve the receipt for a tx that has just been mined: - http://ci.aztec-labs.com/44f98153615cd923 - http://ci.aztec-labs.com/a9a71ad5de32f6c6 These are consistent with [this anvil issue](foundry-rs/foundry#10944) reported on and fixed on early July. We were using a [foundry version from June](https://github.com/foundry-rs/foundry/releases?q=nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8&expanded=true). This PR bumps to the latest release so we include the fix.
2 parents 50bece1 + 297b469 commit 45e1fad

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

bootstrap.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,21 @@ function check_toolchains {
8181
exit 1
8282
fi
8383
# Check foundry version.
84-
local foundry_version="nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8"
84+
local foundry_version="v1.3.3"
8585
for tool in forge anvil; do
8686
if ! $tool --version 2> /dev/null | grep "${foundry_version#nightly-}" > /dev/null; then
87-
encourage_dev_container
8887
echo "$tool not in PATH or incorrect version (requires $foundry_version)."
89-
echo "Installation: https://book.getfoundry.sh/getting-started/installation"
90-
echo " curl -L https://foundry.paradigm.xyz | bash"
91-
echo " foundryup -i $foundry_version"
92-
exit 1
88+
if [ "${CI:-0}" -eq 1 ]; then
89+
echo "Attempting install of required foundry version $foundry_version"
90+
curl -L https://foundry.paradigm.xyz | bash
91+
~/.foundry/bin/foundryup -i $foundry_version
92+
else
93+
encourage_dev_container
94+
echo "Installation: https://book.getfoundry.sh/getting-started/installation"
95+
echo " curl -L https://foundry.paradigm.xyz | bash"
96+
echo " foundryup -i $foundry_version"
97+
exit 1
98+
fi
9399
fi
94100
done
95101
# Check Node.js version.

build-images/src/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RUN git clone https://github.com/tpoechtrager/osxcross.git \
6666
########################################################################################################################
6767
# Build foundry.
6868
FROM base-build AS foundry
69-
ENV FOUNDRY_VERSION=nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8
69+
ENV FOUNDRY_VERSION=v1.3.3
7070
ENV FOUNDRY_BIN_DIR="/root/.foundry/bin"
7171
ENV RUSTUP_HOME=/opt/rust/rustup
7272
ENV CARGO_HOME=/opt/rust/cargo

0 commit comments

Comments
 (0)