Skip to content

Commit

Permalink
Release pango-6403 (#1278)
Browse files Browse the repository at this point in the history
* Release `pango-6403`

* Clear
  • Loading branch information
AurevoirXavier authored Sep 20, 2023
1 parent 96d48b9 commit dc23c8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
13 changes: 2 additions & 11 deletions runtime/crab/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,7 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
}

fn migrate() -> frame_support::weights::Weight {
// 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()
frame_support::weights::Weight::zero()
// RuntimeBlockWeights::get().max_block
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 2)
// <Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 2)
}
2 changes: 1 addition & 1 deletion runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangolin2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_4_0_2,
spec_version: 6_4_0_3,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
9 changes: 2 additions & 7 deletions runtime/pangolin/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
}

fn migrate() -> frame_support::weights::Weight {
EVM::create_account(
array_bytes::hex_n_into_unchecked("0x0000000000000000000000000000000000000403"),
vec![0x60, 0x00, 0x60, 0x00, 0xFD],
);

// frame_support::weights::Weight::zero()
frame_support::weights::Weight::zero()
// RuntimeBlockWeights::get().max_block
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(5, 5)
// <Runtime as frame_system::Config>::DbWeight::get().reads_writes(5, 5)
}
2 changes: 1 addition & 1 deletion runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangoro2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_4_0_2,
spec_version: 6_4_0_3,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down

0 comments on commit dc23c8a

Please sign in to comment.