diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3909b176493..280e8a89a94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -355,7 +355,7 @@ examples-contract-build: <<: *test-refs script: - rustup component add rust-src --toolchain stable - - cargo install --git https://github.com/paritytech/cargo-contract.git --force + - cargo install cargo-contract --version 2.0.0-alpha.1 --force - cargo contract -V - for example in examples/*/; do if [ "$example" = "examples/upgradeable-contracts/" ]; then continue; fi; diff --git a/CHANGELOG.md b/CHANGELOG.md index ee05fce0411..0837940512e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Version 4.0.0-alpha.1 ### Compatibility +In order to build contracts which use ink! `v4.0.0-alpha.1` you need to use +`cargo-contract` +[`v2.0.0-alpha.1`](https://github.com/paritytech/cargo-contract/releases/tag/v2.0.0-alpha.1). +You can install it as follows: + +`cargo install cargo-contract --version 2.0.0-alpha.1` + We recommend using a version of the [`pallet-contracts`](https://github.com/paritytech/substrate/tree/master/frame/contracts) later than [6b85535](https://github.com/paritytech/substrate/tree/6b8553511112afd5ae7e8e6877dc2f467850f155) (Aug 12, 2022) in your node.