multiversx / mx-sdk-py-cli

Python Command Line Tools and SDK for interacting with the MultiversX blockchain and dApps.
Other
49 stars 36 forks source link

Consider using a newer version of "wasm-opt", by default #243

Closed andreibancioiu closed 1 year ago

andreibancioiu commented 1 year ago

Newer versions of rustc might generate WASM bytecode that isn't properly handled by wasm-opt v105.

E.g.

rustc 1.70.0-nightly (9df3a39fb 2023-04-11)

Wasm-opt error:

[wasm-validator error in function 47] unexpected false: all used features should be allowed, on ...

Also see: https://t.me/MultiversXDevelopers/111728

andreibancioiu commented 1 year ago

Temporary workaround:

mxpy config set dependencies.wasm-opt.tag version_112
mxpy deps install wasm-opt --overwrite
andreibancioiu commented 1 year ago

Fixed by #252.

andreibancioiu commented 1 year ago

Also see: https://github.com/multiversx/mx-sdk-py-cli/pull/256