Skip to content

Commit

Permalink
Import vec, update staking pallet mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Aug 28, 2024
1 parent b7e8ab9 commit fc00ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pallets/parameters/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use frame_benchmarking::benchmarks;
use frame_support::assert_ok;
use frame_system::EventRecord;
use sp_std::vec;

use super::*;
#[allow(unused)]
Expand Down
4 changes: 3 additions & 1 deletion pallets/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ use sp_runtime::{
curve::PiecewiseLinear,
testing::{TestXt, UintAuthorityId},
traits::{BlakeTwo256, ConvertInto, IdentityLookup, OpaqueKeys, Zero},
BuildStorage, KeyTypeId, Perbill,
BoundedVec, BuildStorage, KeyTypeId, Perbill,
};
use sp_staking::{EraIndex, SessionIndex};
use sp_std::vec;

use crate as pallet_staking_extension;

Expand Down Expand Up @@ -411,6 +412,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
max_instructions_per_programs: 5u64,
total_signers: 3u8,
threshold: 2u8,
accepted_mrtd_values: vec![BoundedVec::try_from([0; 48].to_vec()).unwrap()],
_config: Default::default(),
}
.assimilate_storage(&mut t)
Expand Down

0 comments on commit fc00ee0

Please sign in to comment.