diff --git a/core/sr-primitives/src/testing.rs b/core/sr-primitives/src/testing.rs index 2284921cb3c0005ce5e8fc0977c4e138141117cb..198870f8c4f428a0ea088da3938e104c0c698052 100644 --- a/core/sr-primitives/src/testing.rs +++ b/core/sr-primitives/src/testing.rs @@ -39,6 +39,12 @@ impl From<u64> for UintAuthorityId { } } +impl From<UintAuthorityId> for u64 { + fn from(id: UintAuthorityId) -> u64 { + id.0 + } +} + impl UintAuthorityId { /// Convert this authority id into a public key. pub fn to_public_key<T: Public>(&self) -> T {