@@ -78,6 +78,7 @@ use std::path::PathBuf;
7878/// * `ProofTooLarge` if the proof is too large.
7979/// * `InsufficientBalance` if the sender balance is insufficient or unlocked
8080/// * `ProofQueueFlushed` if there is an error in the batcher and the proof queue is flushed.
81+ /// * `ProofReplaced` if the proof has been replaced.
8182/// * `GenericError` if the error doesn't match any of the previous ones.
8283#[ allow( clippy:: too_many_arguments) ] // TODO: Refactor this function, use NoncedVerificationData
8384pub async fn submit_multiple_and_wait_verification (
@@ -245,6 +246,7 @@ async fn fetch_gas_price(
245246/// * `ProofTooLarge` if the proof is too large.
246247/// * `InsufficientBalance` if the sender balance is insufficient or unlocked.
247248/// * `ProofQueueFlushed` if there is an error in the batcher and the proof queue is flushed.
249+ /// * `ProofReplaced` if the proof has been replaced.
248250/// * `GenericError` if the error doesn't match any of the previous ones.
249251pub async fn submit_multiple (
250252 network : Network ,
@@ -364,6 +366,7 @@ async fn _submit_multiple(
364366/// * `ProofTooLarge` if the proof is too large.
365367/// * `InsufficientBalance` if the sender balance is insufficient or unlocked
366368/// * `ProofQueueFlushed` if there is an error in the batcher and the proof queue is flushed.
369+ /// * `ProofReplaced` if the proof has been replaced.
367370/// * `GenericError` if the error doesn't match any of the previous ones.
368371#[ allow( clippy:: too_many_arguments) ] // TODO: Refactor this function, use NoncedVerificationData
369372pub async fn submit_and_wait_verification (
@@ -421,6 +424,7 @@ pub async fn submit_and_wait_verification(
421424/// * `ProofTooLarge` if the proof is too large.
422425/// * `InsufficientBalance` if the sender balance is insufficient or unlocked
423426/// * `ProofQueueFlushed` if there is an error in the batcher and the proof queue is flushed.
427+ /// * `ProofReplaced` if the proof has been replaced.
424428/// * `GenericError` if the error doesn't match any of the previous ones.
425429pub async fn submit (
426430 network : Network ,
@@ -832,15 +836,15 @@ fn save_response_json(
832836#[ cfg( test) ]
833837mod test {
834838 //Public constants for convenience
835- pub const HOLESKY_PUBLIC_RPC_URL : & str = "https://ethereum-holesky -rpc.publicnode.com" ;
839+ pub const HOODI_PUBLIC_RPC_URL : & str = "https://ethereum-hoodi -rpc.publicnode.com" ;
836840 use super :: * ;
837841
838842 #[ tokio:: test]
839843 async fn computed_max_fee_for_larger_batch_is_smaller ( ) {
840- let small_fee = estimate_fee_per_proof_with_rpc ( 5 , HOLESKY_PUBLIC_RPC_URL )
844+ let small_fee = estimate_fee_per_proof_with_rpc ( 5 , HOODI_PUBLIC_RPC_URL )
841845 . await
842846 . unwrap ( ) ;
843- let large_fee = estimate_fee_per_proof_with_rpc ( 2 , HOLESKY_PUBLIC_RPC_URL )
847+ let large_fee = estimate_fee_per_proof_with_rpc ( 2 , HOODI_PUBLIC_RPC_URL )
844848 . await
845849 . unwrap ( ) ;
846850
@@ -849,10 +853,10 @@ mod test {
849853
850854 #[ tokio:: test]
851855 async fn computed_max_fee_for_more_proofs_larger_than_for_less_proofs ( ) {
852- let small_fee = estimate_fee_per_proof_with_rpc ( 20 , HOLESKY_PUBLIC_RPC_URL )
856+ let small_fee = estimate_fee_per_proof_with_rpc ( 20 , HOODI_PUBLIC_RPC_URL )
853857 . await
854858 . unwrap ( ) ;
855- let large_fee = estimate_fee_per_proof_with_rpc ( 10 , HOLESKY_PUBLIC_RPC_URL )
859+ let large_fee = estimate_fee_per_proof_with_rpc ( 10 , HOODI_PUBLIC_RPC_URL )
856860 . await
857861 . unwrap ( ) ;
858862
@@ -861,13 +865,13 @@ mod test {
861865
862866 #[ tokio:: test]
863867 async fn estimate_fee_are_larger_than_one_another ( ) {
864- let min_fee = estimate_fee ( HOLESKY_PUBLIC_RPC_URL , FeeEstimationType :: Custom ( 100 ) )
868+ let min_fee = estimate_fee ( HOODI_PUBLIC_RPC_URL , FeeEstimationType :: Custom ( 100 ) )
865869 . await
866870 . unwrap ( ) ;
867- let default_fee = estimate_fee ( HOLESKY_PUBLIC_RPC_URL , FeeEstimationType :: Default )
871+ let default_fee = estimate_fee ( HOODI_PUBLIC_RPC_URL , FeeEstimationType :: Default )
868872 . await
869873 . unwrap ( ) ;
870- let instant_fee = estimate_fee ( HOLESKY_PUBLIC_RPC_URL , FeeEstimationType :: Instant )
874+ let instant_fee = estimate_fee ( HOODI_PUBLIC_RPC_URL , FeeEstimationType :: Instant )
871875 . await
872876 . unwrap ( ) ;
873877
0 commit comments