Skip to content

Commit

Permalink
fix: use U64 for feeHistory blocknumber (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 6, 2024
1 parent d3f53c0 commit 17c5650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,9 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
last_block: BlockNumberOrTag,
reward_percentiles: &[f64],
) -> TransportResult<FeeHistory> {
self.client().request("eth_feeHistory", (block_count, last_block, reward_percentiles)).await
self.client()
.request("eth_feeHistory", (U64::from(block_count), last_block, reward_percentiles))
.await
}

/// Estimate the gas needed for a transaction.
Expand Down

0 comments on commit 17c5650

Please sign in to comment.