fix zombienet scripts for accountid20 compatibility (#292)

This commit is contained in:
Özgün Özerk
2024-08-21 09:54:29 +03:00
committed by GitHub
parent ab82cb37a9
commit 642f05b231
3 changed files with 51 additions and 7 deletions
+24 -3
View File
@@ -1,20 +1,41 @@
#!/bin/bash
ZOMBIENET_V=v1.3.91
ZOMBIENET_V=v1.3.106
POLKADOT_V=v1.6.0
# Detect the operating system
case "$(uname -s)" in
Linux*) MACHINE=Linux;;
Darwin*) MACHINE=Mac;;
*) exit 1
esac
# Detect the architecture
ARCH=$(uname -m)
# Set the executable name based on the OS and architecture
if [ $MACHINE = "Linux" ]; then
ZOMBIENET_BIN=zombienet-linux-x64
if [ $ARCH = "x86_64" ]; then
ZOMBIENET_BIN=zombienet-linux-x64
elif [ $ARCH = "arm64" ] || [ $ARCH = "aarch64" ]; then
ZOMBIENET_BIN=zombienet-linux-arm64
else
echo "Unsupported Linux architecture: $ARCH"
exit 1
fi
elif [ $MACHINE = "Mac" ]; then
ZOMBIENET_BIN=zombienet-macos
if [ $ARCH = "x86_64" ]; then
ZOMBIENET_BIN=zombienet-macos-x86
elif [ $ARCH = "arm64" ]; then
ZOMBIENET_BIN=zombienet-macos-arm64
else
echo "Unsupported macOS architecture: $ARCH"
exit 1
fi
fi
echo "Using binary: $ZOMBIENET_BIN"
BIN_DIR=bin-$POLKADOT_V
build_polkadot() {