mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 11:51:12 +00:00
From<UintAuthority> for u64 (#3638)
* Add from impl for uint authority * Undo change to cargo.
This commit is contained in:
committed by
Bastian Köcher
parent
e9c756dced
commit
b46340cf8e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user