Skip to content

Commit

Permalink
pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfirefist committed Feb 27, 2024
1 parent 0b80c69 commit 6e53ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ use {
LocalWallet,
Signer,
},
types::{transaction::eip2718::TypedTransaction, BlockId},
types::{
transaction::eip2718::TypedTransaction,
BlockId,
},
},
sha3::{
Digest,
Expand Down
6 changes: 4 additions & 2 deletions fortuna/src/chain/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ use {
axum::async_trait,
ethers::types::{
Address,
BlockNumber as EthersBlockNumber,
BlockId,
BlockNumber as EthersBlockNumber,
},
};

pub type BlockNumber = u64;

/// A block status.
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
#[derive(
Copy, Clone, Debug, Default, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize,
)]
pub enum BlockStatus {
/// Latest block
#[default]
Expand Down

0 comments on commit 6e53ac6

Please sign in to comment.