From d5730869eb8292e04c03dc48e922db701d71e7f4 Mon Sep 17 00:00:00 2001 From: Joseph Zhao Date: Sat, 28 Dec 2024 12:19:56 +0800 Subject: [PATCH 1/2] remove number --- crates/eips/src/eip1898.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eips/src/eip1898.rs b/crates/eips/src/eip1898.rs index 06ebebb0d68..4c232253f36 100644 --- a/crates/eips/src/eip1898.rs +++ b/crates/eips/src/eip1898.rs @@ -216,7 +216,7 @@ impl FromStr for BlockNumberOrTag { impl fmt::Display for BlockNumberOrTag { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match *self { - Self::Number(x) => write!(f, "number 0x{x:x}"), + Self::Number(x) => write!(f, "0x{x:x}"), Self::Latest => f.pad("latest"), Self::Finalized => f.pad("finalized"), Self::Safe => f.pad("safe"), From a7a9b3e6b86d6ac3a82b835f2c99afb2c16afc89 Mon Sep 17 00:00:00 2001 From: Joseph Zhao Date: Sat, 28 Dec 2024 12:58:54 +0800 Subject: [PATCH 2/2] fix test --- crates/eips/src/eip1898.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eips/src/eip1898.rs b/crates/eips/src/eip1898.rs index 4c232253f36..6b6205f7645 100644 --- a/crates/eips/src/eip1898.rs +++ b/crates/eips/src/eip1898.rs @@ -996,7 +996,7 @@ mod tests { let id = BlockId::number(100000); - assert_eq!(id.to_string(), "number 0x186a0"); + assert_eq!(id.to_string(), "0x186a0"); let id = BlockId::latest();