-
Notifications
You must be signed in to change notification settings - Fork 120
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
Enable Wasm sign_ext #1189
Enable Wasm sign_ext #1189
Conversation
Let's keep the PR open until the support comes so we don't break the master |
How would we break master? And which master? The development in this repo is blocked unless you downgrade rustc or merge this PR. It doesn't break anything. It keeps working if you use rustc < 1.70 and it didn't work with rustc >= 1.70 before. It just to unblock development here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Question is, can/should we add validation to check if a sign_ext is produced and provide a warning (not error)? Even once pallet-contracts
is updated, it might be that the target chain is still on an old version.
Yeah we probably should have a warning. |
Added a warning if a new rustc is used. I didn't want to scan for the instructions to not add additional dependencies on |
This reverts commit aa2a2e6.
Reverted my CI change because the integration tests fail with |
* Enable Wasm sign_ext * Bump substrate crates * Add warning when building with new rustc * Stable toolchain * Revert "Stable toolchain" This reverts commit aa2a2e6. --------- Co-authored-by: Andrew Jones <[email protected]>
* Add `SignextLowering` pass to `wasm-opt` (#1280) * Add `SignextLowering` pass to `wasm-opt` * Remove check for Rust version (cherry picked from commit 756aa38) * Update wasm-opt * Cargo.lock * Enable Wasm sign_ext (#1189) * Enable Wasm sign_ext * Bump substrate crates * Add warning when building with new rustc * Stable toolchain * Revert "Stable toolchain" This reverts commit aa2a2e6. --------- Co-authored-by: Andrew Jones <[email protected]> * Cargo.lock * Remove version check * WIP updating subxt * Updating subxt --------- Co-authored-by: Alexander Theißen <[email protected]>
Fixes #1139
Since Rustc 1.70 we can't disable signed extension anymore. Hence we have to allow it in order to keep functioning. Eventually, we want to remove the
parity-wasm
dependency but for now we can just enable thesign_ext
feature.Please note that those contracts will not deploy on
pallet-contracts
, yet. Support is coming soon.