Skip to content

Commit 4811db3

Browse files
committed
change name per cmts in #1558
1 parent 2e17db3 commit 4811db3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

batcher/aligned-sdk/src/sdk.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ pub async fn estimate_fee(
140140
// Price of 1 proof in 32 proof batch
141141
match estimate {
142142
PriceEstimate::Default => {
143-
max_fee_per_proof_in_batch(eth_rpc_url, DEFAULT_MAX_FEE_PROOF_NUMBER).await
143+
suggest_fee_per_proof(eth_rpc_url, DEFAULT_MAX_FEE_PROOF_NUMBER).await
144144
}
145145
PriceEstimate::Instant => {
146-
max_fee_per_proof_in_batch(eth_rpc_url, INSTANT_MAX_FEE_PROOF_NUMBER).await
146+
suggest_fee_per_proof(eth_rpc_url, INSTANT_MAX_FEE_PROOF_NUMBER).await
147147
}
148-
PriceEstimate::Custom(n) => max_fee_per_proof_in_batch(eth_rpc_url, n).await,
148+
PriceEstimate::Custom(n) => suggest_fee_per_proof(eth_rpc_url, n).await,
149149
}
150150
}
151151

@@ -160,7 +160,7 @@ pub async fn estimate_fee(
160160
/// # Errors
161161
/// * `EthereumProviderError` if there is an error in the connection with the RPC provider.
162162
/// * `EthereumGasPriceError` if there is an error retrieving the Ethereum gas price.
163-
pub async fn max_fee_per_proof_in_batch(
163+
pub async fn suggest_fee_per_proof(
164164
eth_rpc_url: &str,
165165
num_proofs_in_batch: usize,
166166
) -> Result<U256, errors::FeeEstimateError> {

0 commit comments

Comments
 (0)