wsl --install
does not work, enable WSL manually by running:asdf
asdf
allows you to easily switch between versions of Scarb, Starknet Foundry, and Starknet Devnet globally or per project.asdf
using Homebrew:
asdf
to your shell:
asdf
is installed correctly:
scarb
, snforge
, or starknet-devnet
are not recognized, try running source ~/.bashrc
or restarting your terminal.Settings
-> <YOUR_ACCOUNT>
-> Export Private Key
.Settings
-> Privacy and Security
-> Export Private Key
.zsh
or bash
:~/.zshrc
or ~/.bashrc
.
scarb build
fails to run version command for RustScarb.toml
file:
scarb build
(and scarb test
) will result in a compilation error. To resolve this, either update Scarb, Starknet Foundry, and your Scarb.toml
file accordingly or install Rust.
starkli declare
unable to identify compiler versionstarkli declare
, Starkli will do its best to identify the compiler version of the declared class. In case it fails, the --compiler-version
flag can be used to specify the version of the compiler.
Procedure:
--compiler-version
flag.
asdf
:
a. Install the desired Scarb version: