Update substrate & polkadot (#82)

This commit is contained in:
Cecile Tonglet
2020-04-21 12:17:50 +02:00
committed by GitHub
parent 9f9b3fb4c6
commit 06a36a6650
8 changed files with 1640 additions and 1598 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ use cumulus_primitives::{
};
use frame_support::{
decl_module, storage,
weights::{SimpleDispatchInfo, WeighData, Weight},
weights::{MINIMUM_WEIGHT, SimpleDispatchInfo, WeighData, Weight},
};
use frame_system::ensure_none;
use sp_inherents::{InherentData, InherentIdentifier, MakeFatalError, ProvideInherent};
@@ -51,7 +51,7 @@ decl_module! {
fn on_initialize() -> Weight {
storage::unhashed::kill(well_known_keys::UPWARD_MESSAGES);
SimpleDispatchInfo::default().weigh_data(())
SimpleDispatchInfo::FixedNormal(MINIMUM_WEIGHT).weigh_data(())
}
}
}