Skip to content

Commit

Permalink
fix: Set transaction index to 0 in tx receipt (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc authored Jul 3, 2024
1 parent b591b36 commit 0cf7adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl<S: ForkSource + std::fmt::Debug + Clone + Send + Sync + 'static> EthNamespa
nonce: U256::from(info.tx.common_data.nonce.0),
block_hash: Some(hash),
block_number: Some(U64::from(info.miniblock_number)),
transaction_index: Some(U64::from(1)),
transaction_index: Some(U64::from(0)),
from: Some(info.tx.initiator_account()),
to: Some(info.tx.recipient_account()),
value: info.tx.execute.value,
Expand Down

0 comments on commit 0cf7adc

Please sign in to comment.