Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Loading of original wasm failed #1156

Closed
virgil2019 opened this issue Jun 11, 2023 · 1 comment
Closed

ERROR: Loading of original wasm failed #1156

virgil2019 opened this issue Jun 11, 2023 · 1 comment

Comments

@virgil2019
Copy link

virgil2019 commented Jun 11, 2023

When building ink! example flipper, I encountered the problem:

ERROR: Loading of original wasm failed

Caused by:
    0: Loading of wasm module at '/home/george/test/test/ink/flip40/target/ink/wasm32-unknown-unknown/release/flip40.wasm' failed
    1: Unknown opcode 192

[Environment]
Ubuntu 20.04, Ubuntu 20.04 WSL
cargo-contract-contract 3.0.1-unknown-x86_64-unknown-linux-gnu
SDK: 4.2.0
rust: stable-x86_64-unknown-linux-gnu (default)
rustc 1.70.0 (90c541806 2023-05-31)

I also tried with docker, but the issue is still there

@ascjones
Copy link
Collaborator

You will need to use Rust 1.69, there are new wasm opcodes emitted now in 1.70 that are not yet supported by cargo-contract and pallet-contracts.

Closing as duplicate of #1139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants