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

Unknown opcode 192 - prestine contract code does not compile #1193

Closed
peetzweg opened this issue Jul 4, 2023 · 4 comments
Closed

Unknown opcode 192 - prestine contract code does not compile #1193

peetzweg opened this issue Jul 4, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@peetzweg
Copy link

peetzweg commented Jul 4, 2023

After I upgraded my local installation of rust and cargo-contract, the cargo contract new contract does not build for me. I get the following error message:

ERROR: Loading of original wasm failed

Caused by:
    0: Loading of wasm module at '/Users/ppoloczek/fresh/target/ink/wasm32-unknown-unknown/release/fresh.wasm' failed
    1: Unknown opcode 192

I've updated my setup with these commands:
rustup update
cargo install --force --locked cargo-contract

I'm on these version now:

rustc 1.70.0 (90c541806 2023-05-31)
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
cargo-contract 3.0.1-unknown-aarch64-apple-darwin

Screenshot 2023-07-04 at 14 54 54 Screenshot 2023-07-04 at 14 55 25
@peetzweg peetzweg added the bug Something isn't working label Jul 4, 2023
@peetzweg
Copy link
Author

peetzweg commented Jul 4, 2023

Works on rustc 1.69.0 .

@ascjones
Copy link
Collaborator

ascjones commented Jul 4, 2023

Yes you have to use 1.69

This is a duplicate of #1139

It's been fixed in #1189 (still to be released), but you would still need to use 1.69 because pallet-contracts also does not support that op code

@ascjones ascjones closed this as completed Jul 4, 2023
@statictype
Copy link
Contributor

statictype commented Jul 17, 2023

just got this error today with 1.71 with an Apple M1 Max while compiling ERC20 (from the 4.2.1 tag).
switched to 1.69 and works fine.

cargo-contract 3.0.1-unknown-aarch64-apple-darwin

@statictype statictype reopened this Jul 17, 2023
@statictype
Copy link
Contributor

Ok, missed this part: still to be released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants