mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: lint
This commit is contained in:
@ -219,7 +219,8 @@ fn not_from_system_tx<Eth: EthWrapper>(log: &Log, provider: &Eth::Provider) -> b
|
|||||||
!transactions
|
!transactions
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|tx| tx.is_system_transaction())
|
.filter(|tx| tx.is_system_transaction())
|
||||||
.map(|tx| *tx.tx_hash()).any(|tx_hash| tx_hash == log.transaction_hash.unwrap())
|
.map(|tx| *tx.tx_hash())
|
||||||
|
.any(|tx_hash| tx_hash == log.transaction_hash.unwrap())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Helper to convert a serde error into an [`ErrorObject`]
|
/// Helper to convert a serde error into an [`ErrorObject`]
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pub mod call_forwarder;
|
||||||
pub mod chainspec;
|
pub mod chainspec;
|
||||||
pub mod consensus;
|
pub mod consensus;
|
||||||
mod evm;
|
mod evm;
|
||||||
@ -6,6 +7,5 @@ pub mod hl_node_compliance;
|
|||||||
pub mod node;
|
pub mod node;
|
||||||
pub mod pseudo_peer;
|
pub mod pseudo_peer;
|
||||||
pub mod tx_forwarder;
|
pub mod tx_forwarder;
|
||||||
pub mod call_forwarder;
|
|
||||||
|
|
||||||
pub use node::primitives::{HlBlock, HlBlockBody, HlPrimitives};
|
pub use node::primitives::{HlBlock, HlBlockBody, HlPrimitives};
|
||||||
|
|||||||
@ -112,7 +112,8 @@ where
|
|||||||
) -> Result<ResultAndState<Self::HaltReason>, Self::Error> {
|
) -> Result<ResultAndState<Self::HaltReason>, Self::Error> {
|
||||||
// NOTE: This is used for block traces.
|
// NOTE: This is used for block traces.
|
||||||
// Per hyper-evm-sync, HyperEVM doesn't seem to call this method, so
|
// Per hyper-evm-sync, HyperEVM doesn't seem to call this method, so
|
||||||
// - we just return a success result with no changes, which gives the same semantics as HyperEVM.
|
// - we just return a success result with no changes, which gives the same semantics as
|
||||||
|
// HyperEVM.
|
||||||
// - In a long term (ideally), consider implementing SystemCaller.
|
// - In a long term (ideally), consider implementing SystemCaller.
|
||||||
Ok(ResultAndState::new(
|
Ok(ResultAndState::new(
|
||||||
ExecutionResult::Success {
|
ExecutionResult::Success {
|
||||||
|
|||||||
Reference in New Issue
Block a user