Skip to content

Commit ebf04e5

Browse files
authored
Sync with 6.0.0-beta release (#508)
* Sync with 6.0.0-beta release * Remove unneeded changes
1 parent ec6bb30 commit ebf04e5

File tree

5 files changed

+38
-10
lines changed

5 files changed

+38
-10
lines changed

docs/basics/contract-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ edition = "2021"
9696
# `ink::env` is the `ink_env` crate that contains functions
9797
# to interact with a contract's environment (querying information
9898
# about a caller, the current block number, etc.).
99-
ink = { git = "https://github.com/use-ink/ink.git", tag = "v6.0.0-alpha.4", default-features = false, features = ["unstable-hostfn"] }
99+
ink = { version = "6.0.0-beta", default-features = false }
100100

101101
[dev-dependencies]
102102
# This developer dependency is for the End-to-End testing framework.
103-
ink_e2e = { git = "https://github.com/use-ink/ink.git", tag = "v6.0.0-alpha.4", default-features = false }
103+
ink_e2e = { version = "6.0.0-beta", default-features = false }
104104

105105
[lib]
106106
name = "foobar"

docs/basics/xcm.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ In ink! v6, you need to enable the `xcm` feature in your contract's `Cargo.toml`
2626
```toml
2727
[dependencies]
2828
ink = {
29-
git = "https://github.com/use-ink/ink.git",
30-
tag = "v6.0.0-alpha.4",
29+
version = "6.0.0-beta",
3130
default-features = false,
32-
features = ["xcm", "unstable-hostfn"]
31+
features = ["xcm"]
3332
}
3433
```
3534
:::

docs/faq/migrating-from-ink-5-to-6.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ upgrade the code on-chain, you possibly also have to migrate your storage data.
3131

3232
## Compatibility
3333

34-
- **`polkadot-sdk`**: [this branch](https://github.com/use-ink/polkadot-sdk/tree/pallet-revive-with-system-and-storage-precompiles)
34+
- **`polkadot-sdk`**: [`polkadot-sdk/cbab8ed4be1941420dd25dc81102fb79d8e2a7f0`](https://github.com/paritytech/polkadot-sdk/commit/cbab8ed4be1941420dd25dc81102fb79d8e2a7f0) (Oct 15, 2025)
3535
- For the latest compatibility requirements of Rust, `cargo-contract` and the `ink-node`, see the [setup instructions](/docs/v6/getting-started/setup).
3636

3737
### How do I find out if a chain is compatible with ink! 6.0?
@@ -160,7 +160,7 @@ if the chain that the pallet is running on has enabled the feature
160160
`pallet-revive/unstable-hostfn`.
161161
This feature is not enabled on Kusama or Westend!
162162

163-
It is enabled for the `ink-node` version that we linked above.
163+
It is enabled for the `ink-node` version that we linked above, and on Paseo Passet Hub.
164164

165165
### New debugging workflow
166166
Previously `pallet-contracts` returned a `debug_message` field with contract
@@ -263,6 +263,35 @@ about the motivation and benefits of this change.
263263

264264
[contract-ref-attr]: ../macros-attributes/contract_ref.md
265265

266+
### Sandbox was moved out of `ink_e2e`
267+
268+
We moved the sandbox testing environment to a separate crate.
269+
270+
It changes the current behaviour from:
271+
```toml
272+
[dev-dependencies]
273+
ink_e2e = { version = "", feature = "sandbox" }
274+
```
275+
to
276+
277+
```toml
278+
[dev-dependencies]
279+
ink_e2e = { version = "6.0.0-beta" }
280+
ink_sandbox = { git = "https://github.com/use-ink/ink.git", branch = "6.0.0-beta" }
281+
```
282+
283+
In the tests, you need to apply this change when using `sandbox`. Instead of:
284+
```rust
285+
#[ink_e2e::test(backend(runtime_only(sandbox = sandbox_runtime::ContractCallerSandbox)))]
286+
```
287+
Change to:
288+
```rust
289+
#[ink_sandbox::test(backend(runtime_only(
290+
sandbox = sandbox_runtime::ContractCallerSandbox,
291+
client = ink_sandbox::SandboxClient
292+
)))]
293+
```
294+
266295
## Interesting New Features
267296

268297
### Solidity ABI compatible ink! contracts

docs/getting-started/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ version (>= 1.88) and `cargo`. Please see [the official Rust installation guide]
3030
Install [`cargo-contract`](https://github.com/use-ink/cargo-contract), a CLI tool for setting up and managing ink! smart contracts:
3131

3232
```bash
33-
cargo install --force --locked --tag v6.0.0-alpha.4 --git https://github.com/use-ink/cargo-contract
33+
cargo install --force --locked --version 6.0.0-beta cargo-contract
3434
```
3535

3636
Make sure you have the latest stable version of Rust installed:
@@ -82,7 +82,7 @@ version (>= 1.88) and `cargo`. Please see [the official Rust installation guide]
8282
Use the [Pop CLI](https://learn.onpop.io/contracts/welcome/install-pop-cli) for ink! smart contract development with an enhanced developer experience.
8383

8484
```bash
85-
cargo install --git https://github.com/r0gue-io/pop-cli.git --branch v6.0.0-alpha.4 --locked
85+
cargo install --git https://github.com/r0gue-io/pop-cli.git --branch v6.0.0-alpha.4 --locked
8686
```
8787

8888
**Pop CLI advantages over `cargo-contract`:**

docs/testing/sandbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ DRink! is already integrated with the ink! framework and can be used as a drop-i
110110

111111
Import `ink_sandbox` in your Cargo.toml:
112112
```toml
113-
ink_sandbox = { git = "https://github.com/use-ink/ink", tag = "v6.0.0-alpha.4" }
113+
ink_sandbox = { git = "https://github.com/use-ink/ink", branch = "6.0.0-beta" }
114114
```
115115

116116
And just use corresponding argument in the test macro:

0 commit comments

Comments
 (0)