File tree Expand file tree Collapse file tree
substrate-node/pallets/pallet-tfgrid/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1378,7 +1378,7 @@ pub mod pallet {
13781378
13791379 // Council adds an account to the twin admin list (allowed to deploy on opted-out nodes)
13801380 #[ pallet:: call_index( 44 ) ]
1381- #[ pallet:: weight( <T as Config >:: WeightInfo :: add_twin_admin( ) ) ]
1381+ #[ pallet:: weight( <T as Config >:: WeightInfo :: add_twin_admin( AllowedTwinAdmins :: < T > :: get ( ) . as_ref ( ) . map ( |v| v . len ( ) ) . unwrap_or ( 0 ) as u32 + 1 ) ) ]
13821382 pub fn add_twin_admin (
13831383 origin : OriginFor < T > ,
13841384 account : T :: AccountId ,
@@ -1389,7 +1389,7 @@ pub mod pallet {
13891389
13901390 // Council removes an account from the twin admin list
13911391 #[ pallet:: call_index( 45 ) ]
1392- #[ pallet:: weight( <T as Config >:: WeightInfo :: remove_twin_admin( ) ) ]
1392+ #[ pallet:: weight( <T as Config >:: WeightInfo :: remove_twin_admin( AllowedTwinAdmins :: < T > :: get ( ) . as_ref ( ) . map ( |v| v . len ( ) ) . unwrap_or ( 0 ) as u32 - 1 ) ) ]
13931393 pub fn remove_twin_admin (
13941394 origin : OriginFor < T > ,
13951395 account : T :: AccountId ,
You can’t perform that action at this time.
0 commit comments