Skip to content

Commit

Permalink
fix: return U256 for estimate_gas (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir authored Nov 17, 2023
1 parent 43788ce commit 9f9202c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/providers/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub trait TempProvider: Send + Sync {
Self: Sync;

/// Estimate the gas needed for a transaction.
async fn estimate_gas(&self, tx: CallRequest, block: Option<BlockId>) -> TransportResult<Bytes>
async fn estimate_gas(&self, tx: CallRequest, block: Option<BlockId>) -> TransportResult<U256>
where
Self: Sync;

Expand Down Expand Up @@ -520,7 +520,7 @@ impl<T: Transport + Clone + Send + Sync> TempProvider for Provider<T> {
}

/// Estimate the gas needed for a transaction.
async fn estimate_gas(&self, tx: CallRequest, block: Option<BlockId>) -> TransportResult<Bytes>
async fn estimate_gas(&self, tx: CallRequest, block: Option<BlockId>) -> TransportResult<U256>
where
Self: Sync,
{
Expand Down

0 comments on commit 9f9202c

Please sign in to comment.