Skip to content

Commit 72b5b9e

Browse files
authored
chore: add aliases for Num Hash (#1253)
1 parent 35aa090 commit 72b5b9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/eips/src/eip1898.rs

+6
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ pub struct BlockNumHash {
612612
/// Block number and hash of the forked block.
613613
pub type ForkBlock = BlockNumHash;
614614

615+
/// Either a hash _or_ a number
616+
pub type NumHash = BlockNumHash;
617+
615618
impl BlockNumHash {
616619
/// Creates a new `BlockNumHash` from a block number and hash.
617620
pub const fn new(number: BlockNumber, hash: BlockHash) -> Self {
@@ -655,6 +658,9 @@ pub enum BlockHashOrNumber {
655658
Number(u64),
656659
}
657660

661+
/// Either a hash _or_ a number
662+
pub type HashOrNumber = BlockHashOrNumber;
663+
658664
// === impl BlockHashOrNumber ===
659665

660666
impl BlockHashOrNumber {

0 commit comments

Comments
 (0)