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

Target pallet-revive/PolkaVM instead of pallet-contracts/Wasm #1910

Merged
merged 51 commits into from
Feb 4, 2025

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Jan 23, 2025

This PR moves cargo-contract from compiling contracts to WebAssembly for Substrate's pallet-contracts module to compiling contracts to PolkaVM for Substrate's pallet-revive module.

It's a big breaking change. With this PR we are moving towards the next major release of both ink! and cargo-contract (version 6). From v6 on these tools which will no longer support Wasm/pallet-contracts.

Compatibility

The PR uses the version of polkadot-sdk (so also pallet-revive) from commit 645878a27115db52e5d63115699b4bbb89034067.

It works with ink! master (which at the time of writing is this commit) and this version of substrate-contracts-node:

cargo install --force --git https://github.com/use-ink/substrate-contracts-node.git --rev fad777f53ba2fcf8a90646a5c516015c63ad24be

Next Steps

The PR doesn't leave the code in a perfect state, there are still a lot of todo's in the code. I've disabled some individual tests for now, as they require more work. I'm merging the PR to have a base to work off and synchronize work with others.

The PR contains a lot of breaking changes that will eventually be documented in more verbatim form in the release notes and this migration guide.

@cmichi cmichi changed the title Deprecate WebAssembly + Migrate to pallet-revive Remove WebAssembly for PolkaVM + Migrate to pallet-revive Jan 23, 2025
@cmichi cmichi force-pushed the cmichi-remove-wasm-default-to-revive branch from c98bd47 to bfc62d9 Compare February 2, 2025 16:33
@cmichi cmichi changed the title Remove WebAssembly for PolkaVM + Migrate to pallet-revive Target pallet-revive/PolkaVM instead of pallet-contracts/Wasm Feb 4, 2025
@cmichi cmichi marked this pull request as ready for review February 4, 2025 09:35
@cmichi cmichi requested a review from ascjones as a code owner February 4, 2025 09:35
@cmichi cmichi merged commit d13aafc into master Feb 4, 2025
13 checks passed
@cmichi cmichi deleted the cmichi-remove-wasm-default-to-revive branch February 4, 2025 09:35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@athei Thanks for the note! I saw your comment on another PR of mine on this file a while ago :-). Didn't forget, just didn't get around to it yet.

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

Successfully merging this pull request may close these issues.

2 participants