From d54e9bb510e0c1d33fa27bbca8551b835003b3fb Mon Sep 17 00:00:00 2001 From: peg Date: Wed, 28 Aug 2024 12:32:28 +0200 Subject: [PATCH] Update mock for registry pallet --- pallets/registry/src/mock.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/registry/src/mock.rs b/pallets/registry/src/mock.rs index dc5b75608..3d2c10f19 100644 --- a/pallets/registry/src/mock.rs +++ b/pallets/registry/src/mock.rs @@ -29,9 +29,10 @@ use sp_runtime::{ curve::PiecewiseLinear, testing::{TestXt, UintAuthorityId}, traits::{BlakeTwo256, ConvertInto, IdentityLookup}, - BuildStorage, Perbill, + BoundedVec, BuildStorage, Perbill, }; use sp_staking::{EraIndex, SessionIndex}; +use sp_std::vec; use std::cell::RefCell; use crate as pallet_registry; @@ -387,6 +388,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)