|
1 | | -//! Account deployment module. |
| 1 | +//!Account deployment module. |
2 | 2 | //! |
3 | 3 | //! This module contains functionality for deploying Miden accounts to the network. |
4 | 4 |
|
@@ -40,9 +40,8 @@ use crate::deploy::wallet::{create_wallet_account, save_wallet_account}; |
40 | 40 | pub mod counter; |
41 | 41 | pub mod wallet; |
42 | 42 |
|
43 | | -/// Create an RPC client configured with the correct genesis metadata in the |
44 | | -/// `Accept` header so that write RPCs such as `SubmitProvenTransaction` are |
45 | | -/// accepted by the node. |
| 43 | +/// Create an RPC client configured with the correct genesis metadata in the `Accept` header so that |
| 44 | +/// write RPCs such as `SubmitProvenTransaction` are accepted by the node. |
46 | 45 | pub async fn create_genesis_aware_rpc_client( |
47 | 46 | rpc_url: &Url, |
48 | 47 | timeout: Duration, |
@@ -96,11 +95,10 @@ pub async fn create_genesis_aware_rpc_client( |
96 | 95 | Ok(rpc_client) |
97 | 96 | } |
98 | 97 |
|
99 | | -/// Ensure accounts exist, creating them if they don't. |
| 98 | +///Ensure accounts exist, creating them if they don't. |
100 | 99 | /// |
101 | | -/// This function checks if the wallet and counter account files exist. |
102 | | -/// If they don't exist, it creates new accounts and saves them to the specified files. |
103 | | -/// If they do exist, it does nothing. |
| 100 | +///This function checks if the wallet and counter account files exist. If they don't exist, it |
| 101 | +/// creates new accounts and saves them to the specified files. If they do exist, it does nothing. |
104 | 102 | /// |
105 | 103 | /// # Arguments |
106 | 104 | /// |
@@ -139,10 +137,9 @@ pub async fn ensure_accounts_exist( |
139 | 137 | save_counter_account(&counter_account, counter_filepath) |
140 | 138 | } |
141 | 139 |
|
142 | | -/// Deploy counter account to the network. |
| 140 | +///Deploy counter account to the network. |
143 | 141 | /// |
144 | | -/// This function creates a counter program account, |
145 | | -/// then saves it to the specified file. |
| 142 | +/// This function creates a counter program account, then saves it to the specified file. |
146 | 143 | #[instrument(target = COMPONENT, name = "deploy-counter-account", skip_all, ret(level = "debug"))] |
147 | 144 | pub async fn deploy_counter_account(counter_account: &Account, rpc_url: &Url) -> Result<()> { |
148 | 145 | // Deploy counter account to the network using a genesis-aware RPC client. |
@@ -224,7 +221,7 @@ pub(crate) fn get_counter_library() -> Result<Library> { |
224 | 221 | .map_err(|e| anyhow::anyhow!("Failed to assemble library: {e}")) |
225 | 222 | } |
226 | 223 |
|
227 | | -// MONITOR DATA STORE |
| 224 | +//MONITOR DATA STORE |
228 | 225 | // ================================================================================================ |
229 | 226 |
|
230 | 227 | /// A [`DataStore`] implementation for the network monitor. |
|
0 commit comments