Skip to content

Commit

Permalink
fix(contracts): migrate CodeInfoOf<T> from Twox64Concat hashing t…
Browse files Browse the repository at this point in the history
…o `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
  • Loading branch information
ashutoshvarma authored Mar 14, 2024
1 parent eb26b20 commit 208e233
Show file tree
Hide file tree
Showing 15 changed files with 928 additions and 47 deletions.
11 changes: 6 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/collator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astar-collator"
version = "5.33.0"
version = "5.34.0"
description = "Astar collator implementation in Rust."
build = "build.rs"
default-run = "astar-collator"
Expand Down
4 changes: 4 additions & 0 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ xcm-executor = { workspace = true }
# ORML dependencies
orml-traits = { workspace = true }

pallet-contracts = { workspace = true }

# Frontier dependencies
pallet-evm = { workspace = true }

Expand Down Expand Up @@ -67,8 +69,10 @@ std = [
"fp-evm/std",
"pallet-assets/std",
"pallet-evm/std",
"pallet-contracts/std",
"pallet-evm-precompile-assets-erc20/std",
"pallet-evm-precompile-dispatch/std",
"sp-arithmetic/std",
]
runtime-benchmarks = ["xcm-builder/runtime-benchmarks", "pallet-assets/runtime-benchmarks"]
try-runtime = ["pallet-contracts/try-runtime"]
3 changes: 3 additions & 0 deletions primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ pub mod testing;
/// Oracle & price primitives.
pub mod oracle;

/// Common Migrations
pub mod migrations;

/// Benchmark primitives
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarks;
Expand Down
Loading

0 comments on commit 208e233

Please sign in to comment.