Compiling Wasm with Rust 1.70 leads to unsupported Wasm opcodes #1727
Closed
Description
When compiling a CosmWasm contract with Rust 1.70 (and above?) to Wasm, instructions are emitted that cause the following error:
Wasm bytecode could not be deserialized. Deserialization error: "Unknown opcode 192"
or
Wasm bytecode could not be deserialized. Deserialization error: "Unknown opcode 194"
This referes to C0-C4 in this overview, i.e. the sign extension of Wasm.
See also use-ink/cargo-contract#1139.
Until this resolved, using Rust 1.69.0 is the recommended way. This is also the version used in the latest rust-optimizer/workspace-optimizer.
Metadata
Assignees
Labels
No labels