-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving Log::from_primitive to rpc compat crate (#4968)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
- Loading branch information
1 parent
7ab58e2
commit 0a6d447
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ pub mod transaction; | |
pub use transaction::*; | ||
pub mod engine; | ||
pub use engine::*; | ||
pub mod log; | ||
pub use log::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! Compatibility functions for rpc `Log` type. | ||
|
||
/// Creates a new rpc Log from a primitive log type from DB | ||
pub fn from_primitive_log(log: reth_primitives::Log) -> reth_rpc_types::Log { | ||
reth_rpc_types::Log { | ||
address: log.address, | ||
topics: log.topics, | ||
data: log.data, | ||
block_hash: None, | ||
block_number: None, | ||
transaction_hash: None, | ||
transaction_index: None, | ||
log_index: None, | ||
removed: false, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters