We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35aa090 commit 72b5b9eCopy full SHA for 72b5b9e
crates/eips/src/eip1898.rs
@@ -612,6 +612,9 @@ pub struct BlockNumHash {
612
/// Block number and hash of the forked block.
613
pub type ForkBlock = BlockNumHash;
614
615
+/// Either a hash _or_ a number
616
+pub type NumHash = BlockNumHash;
617
+
618
impl BlockNumHash {
619
/// Creates a new `BlockNumHash` from a block number and hash.
620
pub const fn new(number: BlockNumber, hash: BlockHash) -> Self {
@@ -655,6 +658,9 @@ pub enum BlockHashOrNumber {
655
658
Number(u64),
656
659
}
657
660
661
662
+pub type HashOrNumber = BlockHashOrNumber;
663
664
// === impl BlockHashOrNumber ===
665
666
impl BlockHashOrNumber {
0 commit comments