mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-03 09:21:08 +00:00
Gav display addrs (#267)
* Tidy up warnings * Better Display for AccountId
This commit is contained in:
1 parent
1aa7cb680d
commit
276c464b50
4 files changed
+24
-23
No files matched your search
@@ -168,13 +168,14 @@ impl AsRef<Pair> for Pair {
|
||||
|
||||
impl ::std::fmt::Display for Public {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
write!(f, "{}", ::primitives::hexdisplay::HexDisplay::from(&self.0))
|
||||
write!(f, "{}", self.to_ss58check())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for Public {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
write!(f, "{}", ::primitives::hexdisplay::HexDisplay::from(&self.0))
|
||||
let s = self.to_ss58check();
|
||||
write!(f, "{} ({}...)", ::primitives::hexdisplay::HexDisplay::from(&self.0), &s[0..8])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user