Weights to u64 + Balances Weights (#5446)

Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Shawn Tabrizi
2020-04-16 10:43:18 +02:00
committed by GitHub
parent 1c7525fd4b
commit 980b635c8d
82 changed files with 636 additions and 428 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ mod tests;
use sp_std::vec::Vec;
use frame_support::{
decl_module, decl_event, decl_storage, Parameter, debug,
weights::{Weight, SimpleDispatchInfo, WeighData},
weights::{Weight, MINIMUM_WEIGHT},
};
use sp_runtime::{traits::Hash, Perbill};
use sp_staking::{
@@ -104,7 +104,7 @@ decl_module! {
ConcurrentReportsIndex::<T>::remove_all();
ReportsByKindIndex::remove_all();
SimpleDispatchInfo::default().weigh_data(())
MINIMUM_WEIGHT
}
fn on_initialize(now: T::BlockNumber) -> Weight {
@@ -125,7 +125,7 @@ decl_module! {
})
}
SimpleDispatchInfo::default().weigh_data(())
MINIMUM_WEIGHT
}
}
}
+1
View File
@@ -100,6 +100,7 @@ impl frame_system::Trait for Runtime {
type Event = TestEvent;
type BlockHashCount = BlockHashCount;
type MaximumBlockWeight = MaximumBlockWeight;
type DbWeight = ();
type MaximumBlockLength = MaximumBlockLength;
type AvailableBlockRatio = AvailableBlockRatio;
type Version = ();