Closed deepsea514 closed 1 year ago
cargo-contract v3.0.1
is incompatible with rusc 1.68 or newer. You should use cargo-contract v3.2.0
which is a successor of 3.0.1 and addresses the issue.
Installing with --locked
should fix this:
cargo install cargo-contract --version 3.0.1 --force --locked
However as @SkymanOne points out, it won't work for building contracts with the 1.70
toolchain, so we recommend installing 3.2.0
instead.
Describe the bug I am getting error while installing cargo contract v3.0.1 with rust 1.70.0
To Reproduce cargo install cargo-contract --version 3.0.1 --force
Environment (please complete the following information):
cargo-contract
version 3.0.1Instruction::SignExt(_)
not coveredInstruction
defined here --> /home/odmin/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-wasm-0.45.0/src/elements/ops.rs:308:2Instruction
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown785 ~ } 786 + Instruction::SignExt(_) => todo!() |
For more information about this error, try
rustc --explain E0004
. error: could not compilewasmi-validation
due to previous error warning: build failed, waiting for other jobs to finish... error: failed to compilecargo-contract v3.0.1
, intermediate artifacts can be found at/tmp/cargo-installfBtEDY