Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework migration and on runtime upgrade logic execution #1315

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test for pallet-dummpy-precompiles-code
  • Loading branch information
dmitrylavrenov committed Nov 25, 2024
commit 4b263f1c1fb8e4584b7b55b4fab33d15bd172500
4 changes: 2 additions & 2 deletions crates/pallet-dummy-precompiles-code/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use frame_support::traits::OnRuntimeUpgrade;

use crate::{mock::*, DUMMY_CODE};
use crate::{mock::*, UpgradeInit, DUMMY_CODE};

/// This test verifies that genesis initialization properly assigns the state.
#[test]
Expand Down Expand Up @@ -47,7 +47,7 @@ fn runtime_upgrade() {
);

// Do runtime upgrade hook.
v1::AllPalletsWithoutSystem::on_runtime_upgrade();
UpgradeInit::<v1::Test>::on_runtime_upgrade();

// Verify precompiles addresses creation.
for precompile_address in &v1::PrecompilesAddresses::get() {
Expand Down