Skip to content

Missing Wasm instructions #136

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

Closed
bbyalcinkaya opened this issue Sep 5, 2023 · 0 comments
Closed

Missing Wasm instructions #136

bbyalcinkaya opened this issue Sep 5, 2023 · 0 comments

Comments

@bbyalcinkaya
Copy link
Member

Context: The Multiversx VM has a whitelist of Wasm instructions allowed in contracts. Currently, our wasm semantics does not support all of them (e.g. runtimeverification/wasm-semantics#475.) This limitation forces us to use Rustc 1.69.0, and prevents us from updating mx-sdk-rs.

Problem: Compiling the example contracts with mxpy and Rustc 1.69.0 gives the following error:

error: package `clap_derive v4.4.0` cannot be built because it requires rustc 1.70.0 or newer,
while the currently active rustc version is 1.69.0-nightly
Either upgrade to rustc 1.70.0 or newer, or use
cargo update -p clap_builder@4.4.2 --precise ver

As a workaround in Makefile we apply the fix provided in the error message:

cargo update --manifest-path $*/Cargo.toml -p clap --precise 4.1.0

Solution: Implement all of the whitelisted instructions, upgrade Rustc, and eliminate the temporary fix.

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

1 participant