Skip to content

Commit

Permalink
Release v6.4.0 (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Aug 31, 2023
1 parent cad4129 commit 92834ac
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 25 deletions.
44 changes: 22 additions & 22 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
homepage = "https://darwinia.network"
license = "GPL-3.0"
repository = "https://github.com/darwinia-network/darwinia"
version = "6.3.4"
version = "6.4.0"

[workspace.dependencies]
# crates.io
Expand Down
13 changes: 11 additions & 2 deletions runtime/crab/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
}

fn migrate() -> frame_support::weights::Weight {
frame_support::weights::Weight::zero()
// substrate
use frame_support::traits::StorageVersion;

// Some pallets are added on chain after the migration.
// Thus, they never required the migration and we just missed to set the correct
// `StorageVersion`.
StorageVersion::new(4).put::<Scheduler>();
StorageVersion::new(1).put::<PolkadotXcm>();

// frame_support::weights::Weight::zero()
// RuntimeBlockWeights::get().max_block
// <Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 0)
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 2)
}

0 comments on commit 92834ac

Please sign in to comment.