I having some trouble running the Flipper example from the Ink! webpage.
The cargo contract build
outputs the following error log:
ERROR: Loading of original wasm failed
Caused by:
0: Loading of wasm module at '/Users/winston/workspace/cs/repos/flipper/target/ink/wasm32-unknown-unknown/release/flipper.wasm' failed
1: Unknown opcode 192
rustup show output:
Default host: aarch64-apple-darwin
rustup home: /Users/winston/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin
nightly-aarch64-apple-darwin (default)
installed targets for active toolchain
--------------------------------------
aarch64-apple-darwin
wasm32-unknown-unknown
wasm32-wasi
active toolchain
----------------
nightly-aarch64-apple-darwin (default)
rustc 1.70.0-nightly (17c116721 2023-03-29)
As you can see, I am running on the M1 OSX system.