mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
rpc: small refactor in TransactionSource impl (#10704)
This commit is contained in:
@ -40,16 +40,7 @@ impl TransactionSource {
|
||||
match self {
|
||||
Self::Pool(tx) => {
|
||||
let hash = tx.hash();
|
||||
(
|
||||
tx,
|
||||
TransactionInfo {
|
||||
hash: Some(hash),
|
||||
index: None,
|
||||
block_hash: None,
|
||||
block_number: None,
|
||||
base_fee: None,
|
||||
},
|
||||
)
|
||||
(tx, TransactionInfo { hash: Some(hash), ..Default::default() })
|
||||
}
|
||||
Self::Block { transaction, index, block_hash, block_number, base_fee } => {
|
||||
let hash = transaction.hash();
|
||||
|
||||
Reference in New Issue
Block a user