From 25d8cffe96731ad23fd4a84cde7fe71dec41c57b Mon Sep 17 00:00:00 2001 From: Urix <43704209+uri-99@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:43:23 -0300 Subject: [PATCH] fix: remove pointer on docs and extra impl in main.rs --- batcher/aligned/src/main.rs | 10 ---------- docs/3_guides/1.2_SDK_api_reference.md | 12 ++++++------ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/batcher/aligned/src/main.rs b/batcher/aligned/src/main.rs index 401b184d2..dad060c86 100644 --- a/batcher/aligned/src/main.rs +++ b/batcher/aligned/src/main.rs @@ -217,16 +217,6 @@ impl From for Network { } } -impl From<&NetworkArg> for Network { - fn from(env_arg: &NetworkArg) -> Self { - match env_arg { - NetworkArg::Devnet => Network::Devnet, - NetworkArg::Holesky => Network::Holesky, - NetworkArg::HoleskyStage => Network::HoleskyStage, - } - } -} - #[derive(Debug, Clone, ValueEnum)] pub enum ProvingSystemArg { #[clap(name = "GnarkPlonkBls12_381")] diff --git a/docs/3_guides/1.2_SDK_api_reference.md b/docs/3_guides/1.2_SDK_api_reference.md index 7fd7a6442..56da68f75 100644 --- a/docs/3_guides/1.2_SDK_api_reference.md +++ b/docs/3_guides/1.2_SDK_api_reference.md @@ -9,7 +9,7 @@ Submits a proof to the batcher to be verified and returns an aligned verificatio ```rust pub async fn submit( batcher_url: &str, - network: &Network, + network: Network, verification_data: &VerificationData, max_fee; U256, wallet: Wallet, @@ -55,7 +55,7 @@ Submits multiple proofs to the batcher to be verified and returns an aligned ver ```rust pub async fn submit_multiple( batcher_url: &str, - network: &Network, + network: Network, verification_data: &[VerificationData], max_fees: &[U256], wallet: Wallet, @@ -104,7 +104,7 @@ verification data struct. pub async fn submit_and_wait_verification( batcher_url: &str, eth_rpc_url: &str, - network: &Network, + network: Network, verification_data: &VerificationData, max_fee: U256, wallet: Wallet, @@ -158,7 +158,7 @@ verification data array. pub async fn submit_multiple_and_wait_verification( batcher_url: &str, eth_rpc_url: &str, - network: &Network, + network: Network, verification_data: &[VerificationData], wallet: Wallet, nonce: U256, @@ -210,7 +210,7 @@ Checks if the proof has been verified with Aligned and is included in the batch ```rust pub async fn is_proof_verified( aligned_verification_data: AlignedVerificationData, - network: &Network, + network: Network, eth_rpc_url: &str, payment_service_addr: &str, ) -> Result @@ -260,7 +260,7 @@ Returns the nonce to use for a given address. pub async fn get_next_nonce( eth_rpc_url: &str, submitter_addr: Address, - network: &Network, + network: Network, ) -> Result ```