mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
reset events before apply runtime upgrade (#10620)
* reset events before apply runtime upgrade * fix tests * add test * update comment * Update frame/system/src/lib.rs * trigger CI Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -239,7 +239,8 @@ mod tests {
|
||||
let mut parent_hash = System::parent_hash();
|
||||
|
||||
for i in 1..(blocks + 1) {
|
||||
System::initialize(&i, &parent_hash, &Default::default(), frame_system::InitKind::Full);
|
||||
System::reset_events();
|
||||
System::initialize(&i, &parent_hash, &Default::default());
|
||||
CollectiveFlip::on_initialize(i);
|
||||
|
||||
let header = System::finalize();
|
||||
|
||||
Reference in New Issue
Block a user