Skip to content

Commit

Permalink
Temp get_uncle fix (#589)
Browse files Browse the repository at this point in the history
* possible fix

* temp-fix: rollback to U64

* fix: convert in fn
  • Loading branch information
yash-atreya authored Apr 19, 2024
1 parent 31846e7 commit f1b4789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/provider/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:

/// Gets an uncle block through the tag [BlockId] and index [u64].
async fn get_uncle(&self, tag: BlockId, idx: u64) -> TransportResult<Option<Block>> {
let idx = U64::from(idx);
match tag {
BlockId::Hash(hash) => {
self.client()
Expand Down

0 comments on commit f1b4789

Please sign in to comment.