Skip to content

Commit

Permalink
fix: rename methods (#1469)
Browse files Browse the repository at this point in the history
rename methods for correct dispatch

Signed-off-by: Gregory Edison <[email protected]>
  • Loading branch information
greged93 authored Oct 18, 2024
1 parent 24cec64 commit 3b713ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/providers/eth_provider/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ where
// Set a high gas limit to make sure the transaction will not fail due to gas.
let request = TransactionRequest { gas: Some(u64::MAX), ..request };

let gas_used = self.estimate_gas(request, block_id).await?;
let gas_used = self.estimate_gas_inner(request, block_id).await?;

// Increase the gas used by 200% to make sure the transaction will not fail due to gas.
// This is a temporary solution until we have a proper gas estimation.
Expand Down
4 changes: 2 additions & 2 deletions src/providers/eth_provider/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ where
}

/// Call the Kakarot contract with the given request.
pub(crate) async fn call_helper(
pub(crate) async fn call_inner(
&self,
request: TransactionRequest,
block_id: Option<BlockId>,
Expand Down Expand Up @@ -184,7 +184,7 @@ where
}

/// Estimate the gas used in Kakarot for the given request.
pub(crate) async fn estimate_gas(
pub(crate) async fn estimate_gas_inner(
&self,
request: TransactionRequest,
block_id: Option<BlockId>,
Expand Down
2 changes: 1 addition & 1 deletion src/providers/eth_provider/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ where
}

// If no state or block overrides are present, call the helper function to execute the call.
let output = self.call_helper(request, block_id).await?;
let output = self.call_inner(request, block_id).await?;
Ok(Bytes::from(output.0.into_iter().filter_map(|x| x.to_u8()).collect::<Vec<_>>()))
}
}

0 comments on commit 3b713ff

Please sign in to comment.