Skip to content
Snippets Groups Projects
Commit 320fdb20 authored by Kian Paimani's avatar Kian Paimani Committed by Bastian Köcher
Browse files

From<UintAuthority> for u64 (#3638)

* Add from impl for uint authority

* Undo change to cargo.
parent 5c9a84a1
Branches
Tags
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment