Skip to content

Commit 071e870

Browse files
committed
Add WeightInfo to all pallets with benchmarks. (#6575)
* Start adding weight info * More weightinfo * finish weight info * more fixes * inital update of node runtime * fix the rest of the compilation * update balances * add docs * fix balances tests * Fix more tests * Fix compile * Fix pallet-evm tests
1 parent 6f2ad2f commit 071e870

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ impl frame_system::Trait for Test {
6161
type AccountData = pallet_balances::AccountData<u64>;
6262
type OnNewAccount = ();
6363
type OnKilledAccount = ();
64+
type SystemWeightInfo = ();
6465
}
6566

6667
parameter_types! {
@@ -72,6 +73,7 @@ impl pallet_balances::Trait for Test {
7273
type Event = ();
7374
type ExistentialDeposit = ExistentialDeposit;
7475
type AccountStore = System;
76+
type WeightInfo = ();
7577
}
7678

7779
parameter_types! {
@@ -81,6 +83,7 @@ impl pallet_timestamp::Trait for Test {
8183
type Moment = u64;
8284
type OnTimestampSet = ();
8385
type MinimumPeriod = MinimumPeriod;
86+
type WeightInfo = ();
8487
}
8588

8689
/// Fixed gas price of `0`.

0 commit comments

Comments
 (0)