diff --git a/scripts/starter.sh b/scripts/starter.sh index aaeb09e..5df7343 100755 --- a/scripts/starter.sh +++ b/scripts/starter.sh @@ -81,20 +81,18 @@ extract_seed() { } downgrade_compiler_if_needed() { - # TODO: uncomment later - # echo "[+] fetching the latest ghost-node source code" - # git switch main - # git pull origin main + echo "[+] fetching the latest ghost-node source code" + git switch main + git pull origin main - # 1.83.0 works fine, tested with: - # ... + # 1.86.0 works fine, tested with: # 1.87.0 throws errors during compilation # 1.88.0 throws errors during compilation - LATEST_TESTED_VERSION=83 + LATEST_TESTED_VERSION=86 cargo_version=$(cargo --version | cut -d'.' -f2) if [ "$cargo_version" -gt "$LATEST_TESTED_VERSION" ]; then - echo "[+] downgrading rustc compiler version to 1.83.0" - rustup default 1.83.0 + echo "[+] downgrading rustc compiler version to 1.86.0" + rustup default 1.86.0 toolchain_name=$(rustup show | grep default | head -n 1 | cut -d' ' -f1) rustup target add wasm32-unknown-unknown --toolchain $toolchain_name rustup component add rust-src --toolchain $toolchain_name