From 67df3326e29599d31fa3cda8d66fc6a842c0e1ba Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 8 Jan 2025 15:54:57 -0600 Subject: [PATCH] fix: resolves issues with installing anvil-zksync with rosetta --- foundryup-zksync/foundryup-zksync | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/foundryup-zksync/foundryup-zksync b/foundryup-zksync/foundryup-zksync index 21893e061..3fead66d6 100755 --- a/foundryup-zksync/foundryup-zksync +++ b/foundryup-zksync/foundryup-zksync @@ -192,6 +192,10 @@ EOF "Darwin") os="apple-darwin" arch=$(arch) + if [[ "$arch" == "i386" ]]; then + # Rosetta reports as i386, but we treat it as x86_64 + arch="x86_64" + fi ;; *) err "anvil-zksync only supports Linux and MacOS! Detected OS: $uname_str"