Skip to content

Commit

Permalink
chore(provider): dont recover sender from BlockState transaction on…
Browse files Browse the repository at this point in the history
… `transaction_sender` (paradigmxyz#11424)
  • Loading branch information
joshieDo authored Oct 2, 2024
1 parent e2f35ce commit 2ca8231
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/storage/provider/src/providers/blockchain_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,15 +821,7 @@ impl<N: ProviderNodeTypes> TransactionsProvider for BlockchainProvider2<N> {
self.get_in_memory_or_storage_by_tx(
id.into(),
|provider| provider.transaction_sender(id),
|tx_index, _, block_state| {
Ok(block_state
.block()
.block()
.body
.transactions
.get(tx_index)
.and_then(|transaction| transaction.recover_signer()))
},
|tx_index, _, block_state| Ok(block_state.block().senders.get(tx_index).copied()),
)
}
}
Expand Down

0 comments on commit 2ca8231

Please sign in to comment.