Skip to content

Commit

Permalink
infer generics
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Sep 30, 2024
1 parent 9c84bbf commit f51d6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/advanced/examples/reth_db_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ where

let best = provider.best_block_number().map_err(TransportErrorKind::custom);

ProviderCall::<T, NoParams, U64, u64>::ready(best)
ProviderCall::ready(best)
}

/// Override the `get_transaction_count` method to fetch the transaction count of an address.
Expand All @@ -184,7 +184,7 @@ where

let nonce = maybe_acc.map(|acc| acc.nonce).unwrap_or_default();

ProviderCall::<T, ParamsWithBlock<Address>, U64, u64>::ready(Ok(nonce))
ProviderCall::ready(Ok(nonce))
})
}
}
Expand Down

0 comments on commit f51d6b1

Please sign in to comment.