mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 22:45:40 +00:00
Make weights compatible with u64 (#4192)
* Use Weight instead of u32 everywhere * Revert Weight declaration * Fix benches
This commit is contained in:
committed by
Bastian Köcher
parent
1ceebb5c3a
commit
3e3ec05e56
@@ -240,7 +240,7 @@ impl<T: Trait> Module<T> {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
use support::{impl_outer_origin, assert_ok, assert_noop, parameter_types};
|
||||
use support::{impl_outer_origin, assert_ok, assert_noop, parameter_types, weights::Weight};
|
||||
use primitives::H256;
|
||||
// The testing primitives are very useful for avoiding having to work with signatures
|
||||
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
|
||||
@@ -257,7 +257,7 @@ mod tests {
|
||||
pub struct Test;
|
||||
parameter_types! {
|
||||
pub const BlockHashCount: u64 = 250;
|
||||
pub const MaximumBlockWeight: u32 = 1024;
|
||||
pub const MaximumBlockWeight: Weight = 1024;
|
||||
pub const MaximumBlockLength: u32 = 2 * 1024;
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::one();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user