Skip to content

Commit 7eb7568

Browse files
authored
Minor fixes for changelog of 5.1.0 release (#2322)
* Use fixed version links in changelog * Use version 5.1.0 in examples
1 parent e4fd25d commit 7eb7568

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ ink! 5.1 supports the usage of XCM in contracts, developers are no longer limite
3030
to cross-contract calls, but can now execute cross-parachain calls.
3131

3232
We added a contract example that demonstrates the usage:
33-
[`contract-xcm`](https://github.com/use-ink/ink/tree/master/integration-tests/public/runtime-call-contract)
33+
[`contract-xcm`](https://github.com/use-ink/ink-examples/tree/main/contract-xcm)
3434

3535
We also added a new page on our documentation website: TODO.
3636

3737
You can view the Rust docs of the two functions here:
3838

39-
* [`xcm_send`](https://use-ink.github.io/ink/ink_env/fn.xcm_send.html)
40-
* [`xcm_execute`](https://use-ink.github.io/ink/ink_env/fn.xcm_execute.html)
39+
* [`xcm_send`](https://docs.rs/ink_env/5.1.0/ink_env/fn.xcm_send.html)
40+
* [`xcm_execute`](https://docs.rs/ink_env/5.1.0/ink_env/fn.xcm_execute.html)
4141

4242
#### (2) Call an ink! contract from a `polkadot-sdk` runtime
4343

4444
ink! 5.1 comes with basic support for calling contracts from a Polkadot runtime.
45-
We've added [this example](https://github.com/use-ink/ink/tree/master/integration-tests/public/runtime-call-contract)
45+
We've added [this example](https://github.com/use-ink/ink-examples/tree/main/runtime-call-contract)
4646
that demonstrates how to call `flipper` from a `polkadot-sdk` runtime pallet.
4747

4848
Calling a contract from the runtime is an interesting application for parachains,
@@ -61,8 +61,10 @@ The limitations currently are:
6161
#### (3) E2E Testing
6262

6363
We replaced our `drink` sandbox dependency with an internal ink! crate.
64-
In case you use [DRink!](https://use.ink/basics/contract-testing/drink), these are
65-
the two changes you have to make:
64+
In case you use [DRink!](https://use.ink/basics/contract-testing/drink):
65+
66+
First, you should upgrade your `drink` dependency to `version = "0.18.0"`.
67+
Second, these are the two changes you have to make:
6668

6769
```diff
6870
- #[ink_e2e::test(backend(runtime_only(sandbox = ink_e2e::MinimalSandbox)))]
@@ -83,7 +85,7 @@ The compatibility changes a bit to ink! 5.0:
8385
- `polkadot-sdk`: [>= v1.12.0](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.12.0)
8486
(this release stabilized the `pallet-contracts` XCM functions that ink! uses)
8587
- `substrate-contracts-node`: `>= 0.42.0`
86-
- [DRink!](https://github.com/inkdevhub/drink): `>= 0.15.0`
88+
- [DRink!](https://github.com/inkdevhub/drink): `>= 0.18.0`
8789

8890
### Added
8991
- [Runtime-to-Contract Calls] Environment agnostic contract invocation API, for calling contracts from runtime ‒ [#2219](https://github.com/use-ink/ink/pull/2219)
@@ -95,7 +97,6 @@ The compatibility changes a bit to ink! 5.0:
9597
- [E2E] Add ability to take and restore snapshots ‒ [#2261](https://github.com/paritytech/ink/pull/2261) (thanks [@0xLucca](https://github.com/0xLucca)!)
9698
- [E2E] Demonstrate usage of seeds for secret URIs in E2E test for chain snapshots ‒ [#2163](https://github.com/paritytech/ink/pull/2163)
9799

98-
99100
### Changed
100101
- Update repository URLs & references from `paritytech` GitHub organization to new `use-ink` one ‒ [#2220](https://github.com/use-ink/ink/pull/2220) and [#2248](https://github.com/use-ink/ink/pull/2248)
101102
- [E2E] Update `subxt` and `polkadot-sdk` dependencies ‒ [#2174](https://github.com/use-ink/ink/pull/2174)

integration-tests/public/contract-xcm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contract-xcm"
3-
version = "4.0.0"
3+
version = "5.1.0"
44
authors = ["Use Ink <[email protected]>"]
55
edition = "2021"
66
publish = false

0 commit comments

Comments
 (0)