mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
dev: use U64 for transaction_index (#4261)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -9,7 +9,7 @@ pub struct TransactionReceipt {
|
||||
/// Transaction Hash.
|
||||
pub transaction_hash: Option<H256>,
|
||||
/// Index within the block.
|
||||
pub transaction_index: Option<U256>,
|
||||
pub transaction_index: U64,
|
||||
/// Hash of the block this transaction was included within.
|
||||
pub block_hash: Option<H256>,
|
||||
/// Number of the block this transaction was included within.
|
||||
|
||||
@@ -859,7 +859,7 @@ pub(crate) fn build_transaction_receipt_with_block_receipts(
|
||||
|
||||
let mut res_receipt = TransactionReceipt {
|
||||
transaction_hash: Some(meta.tx_hash),
|
||||
transaction_index: Some(U256::from(meta.index)),
|
||||
transaction_index: meta.index.into(),
|
||||
block_hash: Some(meta.block_hash),
|
||||
block_number: Some(U256::from(meta.block_number)),
|
||||
from: transaction.signer(),
|
||||
|
||||
Reference in New Issue
Block a user