I am doing the prepare your first contract tutorial on subtrate and i am getting the following error ERROR: Your wasm-opt version is 91, but we require a version >= 99.Can anyone please tell me how to solve it .
1 Answer
wasm-opt
is part of the binaryen
package. You can find out your local version by executing wasm-opt --version
.
In the cargo-contract
installation instructions and the error message that you are getting there are notes on how to get a new version.
It comes down to installing binaryen
in a version >= 99:
- Debian/Ubuntu:
apt-get install binaryen
- Homebrew:
brew install binaryen
- Arch Linux:
pacman -S binaryen
- Windows: binary releases are available
- There is also
npm i wasm-opt -g
.
If none of this works you can download a binary release here and put the wasm-opt
binary into your environment.