From b46340cf8ebf335823690d24e0fe2c1e4d32297f Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 18 Sep 2019 13:24:08 +0200 Subject: [PATCH] From for u64 (#3638) * Add from impl for uint authority * Undo change to cargo. --- substrate/core/sr-primitives/src/testing.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/substrate/core/sr-primitives/src/testing.rs b/substrate/core/sr-primitives/src/testing.rs index 2284921cb3..198870f8c4 100644 --- a/substrate/core/sr-primitives/src/testing.rs +++ b/substrate/core/sr-primitives/src/testing.rs @@ -39,6 +39,12 @@ impl From for UintAuthorityId { } } +impl From for u64 { + fn from(id: UintAuthorityId) -> u64 { + id.0 + } +} + impl UintAuthorityId { /// Convert this authority id into a public key. pub fn to_public_key(&self) -> T {