Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Oct 6, 2024
1 parent 6720fab commit 2100685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/eth_provider/database/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use {
alloy_primitives::U256,
arbitrary::Arbitrary,
rand::Rng,
reth_primitives::transaction::legacy_parity,
reth_testing_utils::generators::{self},
};

Expand Down Expand Up @@ -76,9 +77,7 @@ impl Arbitrary<'_> for StoredTransaction {
r: transaction_signed.signature.r(),
s: transaction_signed.signature.s(),
v: if transaction_signed.is_legacy() {
U256::from(
transaction_signed.signature.with_chain_id(transaction_signed.chain_id().unwrap()).v().to_u64(),
)
U256::from(legacy_parity(&transaction_signed.signature, transaction_signed.chain_id()).to_u64())
} else {
U256::from(transaction_signed.signature.v().to_u64())
},
Expand Down

0 comments on commit 2100685

Please sign in to comment.