[go: nahoru, domu]

Skip to content

Commit

Permalink
fix return value of get_transaction_by_block_and_index (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlinkyStitt committed Feb 9, 2024
1 parent 4d267f7 commit 73718f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-providers/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pub trait Middleware: Sync + Send + Debug {
&self,
block_hash_or_number: T,
idx: U64,
) -> Result<Option<Transaction>, ProviderError> {
) -> Result<Option<Transaction>, Self::Error> {
self.inner()
.get_transaction_by_block_and_index(block_hash_or_number, idx)
.await
Expand Down

0 comments on commit 73718f5

Please sign in to comment.