File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments