Skip to content

Commit 208e233

Browse files
fix(contracts): migrate CodeInfoOf<T> from Twox64Concat hashing to Identity as defined in pallet-contracts (#1200)
* fix: add migration v12 fix * fix: build * feat: take new contracts into account * feat: add fixed v12, v14 migrations * feat: add noop migration to ensure pallet versions * feat: bump semver to v5.34.0
1 parent eb26b20 commit 208e233

15 files changed

Lines changed: 928 additions & 47 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/collator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "astar-collator"
3-
version = "5.33.0"
3+
version = "5.34.0"
44
description = "Astar collator implementation in Rust."
55
build = "build.rs"
66
default-run = "astar-collator"

primitives/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ xcm-executor = { workspace = true }
3636
# ORML dependencies
3737
orml-traits = { workspace = true }
3838

39+
pallet-contracts = { workspace = true }
40+
3941
# Frontier dependencies
4042
pallet-evm = { workspace = true }
4143

@@ -67,8 +69,10 @@ std = [
6769
"fp-evm/std",
6870
"pallet-assets/std",
6971
"pallet-evm/std",
72+
"pallet-contracts/std",
7073
"pallet-evm-precompile-assets-erc20/std",
7174
"pallet-evm-precompile-dispatch/std",
7275
"sp-arithmetic/std",
7376
]
7477
runtime-benchmarks = ["xcm-builder/runtime-benchmarks", "pallet-assets/runtime-benchmarks"]
78+
try-runtime = ["pallet-contracts/try-runtime"]

primitives/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ pub mod testing;
4444
/// Oracle & price primitives.
4545
pub mod oracle;
4646

47+
/// Common Migrations
48+
pub mod migrations;
49+
4750
/// Benchmark primitives
4851
#[cfg(feature = "runtime-benchmarks")]
4952
pub mod benchmarks;

0 commit comments

Comments
 (0)