[dependencies]: unify rustc-hex (#11506)
* [dependency]: unify `rustc-hex` * [private tx]: fix upgrade to `rustc hex 2.1.0`
This commit is contained in:
@@ -14,7 +14,7 @@ vm = { path = "../../vm" }
|
||||
wasm = { path = "../" }
|
||||
clap = "2.24"
|
||||
env_logger = "0.5"
|
||||
rustc-hex = "1.0"
|
||||
rustc-hex = "2.1.0"
|
||||
|
||||
[features]
|
||||
default = ["ethereum-types/std"]
|
||||
|
||||
@@ -73,9 +73,9 @@ impl fmt::Display for Fail {
|
||||
write!(
|
||||
f,
|
||||
"Expected to return result: 0x{} ({} bytes), but got 0x{} ({} bytes)",
|
||||
expected.to_hex(),
|
||||
expected.to_hex::<String>(),
|
||||
expected.len(),
|
||||
actual.to_hex(),
|
||||
actual.to_hex::<String>(),
|
||||
actual.len()
|
||||
),
|
||||
|
||||
@@ -95,17 +95,17 @@ impl fmt::Display for Fail {
|
||||
write!(
|
||||
f,
|
||||
"Storage key {} value mismatch, expected {}, got: {}",
|
||||
key.as_bytes().to_vec().to_hex(),
|
||||
expected.as_bytes().to_vec().to_hex(),
|
||||
actual.as_bytes().to_vec().to_hex(),
|
||||
key.as_bytes().to_hex::<String>(),
|
||||
expected.as_bytes().to_hex::<String>(),
|
||||
actual.as_bytes().to_hex::<String>(),
|
||||
),
|
||||
|
||||
StorageMismatch { ref key, ref expected, actual: None} =>
|
||||
write!(
|
||||
f,
|
||||
"No expected storage value for key {} found, expected {}",
|
||||
key.as_bytes().to_vec().to_hex(),
|
||||
expected.as_bytes().to_vec().to_hex(),
|
||||
key.as_bytes().to_hex::<String>(),
|
||||
expected.as_bytes().to_hex::<String>(),
|
||||
),
|
||||
|
||||
Nonconformity(SpecNonconformity::Address) =>
|
||||
|
||||
Reference in New Issue
Block a user