Skip to content

Commit

Permalink
test: ensure Lookup configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvdplas committed Jul 24, 2024
1 parent 757459e commit 8bc6576
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions runtime/devnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,3 +960,19 @@ cumulus_pallet_parachain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}

#[cfg(test)]
mod tests {
use crate::Runtime;
use std::any::TypeId;
type ExpectedLookup = sp_runtime::traits::AccountIdLookup<sp_runtime::AccountId32, ()>;
type ConfigLookup = <Runtime as frame_system::Config>::Lookup;

#[test]
fn test_lookup_config() {
let expected_type_id = TypeId::of::<ExpectedLookup>();
let config_type_id = TypeId::of::<ConfigLookup>();

assert_eq!(config_type_id, expected_type_id);
}
}

0 comments on commit 8bc6576

Please sign in to comment.