From 1354179f3c1586b1359c21a3a7e935edf1343ec8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 9 Feb 2024 04:22:48 -0800 Subject: [PATCH] Add Hash to BlockId (#2731) --- ethers-core/src/types/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-core/src/types/block.rs b/ethers-core/src/types/block.rs index 83d41ba3f..4df6b9d8e 100644 --- a/ethers-core/src/types/block.rs +++ b/ethers-core/src/types/block.rs @@ -462,7 +462,7 @@ pub struct EpochSnarkData { } /// A [block hash](H256) or [block number](BlockNumber). -#[derive(Copy, Clone, Debug, PartialEq, Eq)] +#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)] pub enum BlockId { // TODO: May want to expand this to include the requireCanonical field //