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
@@ -1099,7 +1099,7 @@ fn save_key(path: &Path, key: &Secret) {
|
||||
if let Err(e) = restrict_permissions_owner(path, true, false) {
|
||||
warn!(target: "network", "Failed to modify permissions of the file ({})", e);
|
||||
}
|
||||
if let Err(e) = file.write(&key.hex().into_bytes()) {
|
||||
if let Err(e) = file.write(&key.hex().into_bytes()[2..]) {
|
||||
warn!("Error writing key file: {:?}", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,9 +169,9 @@ impl Node {
|
||||
impl Display for Node {
|
||||
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
||||
if self.endpoint.udp_port != self.endpoint.address.port() {
|
||||
write!(f, "enode://{}@{}+{}", self.id.hex(), self.endpoint.address, self.endpoint.udp_port)?;
|
||||
write!(f, "enode://{:x}@{}+{}", self.id, self.endpoint.address, self.endpoint.udp_port)?;
|
||||
} else {
|
||||
write!(f, "enode://{}@{}", self.id.hex(), self.endpoint.address)?;
|
||||
write!(f, "enode://{:x}@{}", self.id, self.endpoint.address)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user