[export hardcoded sync]: use debug for H256 (#11204)

Fixes #11202

The `Display` implementation for `SpecHardcodedSync` used the `Display` implementation of
`ethereum_types::H256` which doesn't show the full hash which this fixes.
This commit is contained in:
Niklas Adolfsson
2019-10-25 18:12:14 +02:00
committed by David
parent ffeaee778c
commit c4ca84cdf3
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ impl fmt::Display for SpecHardcodedSync {
writeln!(f, "{{")?;
writeln!(f, r#"header": "{:?},"#, self.header)?;
writeln!(f, r#"total_difficulty": "{:?},"#, self.total_difficulty)?;
writeln!(f, r#"chts": {:#?}"#, self.chts.iter().map(|x| format!(r#"{}"#, x)).collect::<Vec<_>>())?;
writeln!(f, r#"chts": {:#?}"#, self.chts.iter().map(|x| format!(r#"{:?}"#, x)).collect::<Vec<_>>())?;
writeln!(f, "}}")
}
}