Bump ethabi & ethereum-types. (#8258)
* Bump ethabi & ethereum-types. * Fix test. * Fix hex encodings.
This commit is contained in:
committed by
André Silva
parent
c1cced3662
commit
9108a3bb50
@@ -29,13 +29,19 @@ pub struct Secret {
|
||||
|
||||
impl ToHex for Secret {
|
||||
fn to_hex(&self) -> String {
|
||||
self.inner.to_hex()
|
||||
format!("{:x}", self.inner)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::LowerHex for Secret {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.inner.fmt(fmt)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for Secret {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(fmt, "{:?}", self.inner)
|
||||
self.inner.fmt(fmt)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user