Skip to content

Commit 1c23167

Browse files
committed
Refactor package imports and update network name documentation in read-only client
1 parent 5d029ca commit 1c23167

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

notarization-rs/src/client/read_only.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::core::NotarizationMethod;
2424
use crate::error::Error;
2525
use crate::iota_interaction_adapter::IotaClientAdapter;
2626
use crate::package;
27-
use crate::package::MAINNET_CHAIN_ID;
27+
use product_common::package_registry::MAINNET_CHAIN_ID;
2828

2929
/// A read-only client for interacting with IOTA Notarization module objects on a specific network.
3030
///
@@ -39,7 +39,7 @@ pub struct NotarizationClientReadOnly {
3939
/// The [`ObjectID`] of the deployed Notarization package (smart contract).
4040
/// All interactions go through this package ID.
4141
notarization_pkg_id: ObjectID,
42-
/// The name of the network this client is connected to (e.g., "iota", "testnet").
42+
/// The name of the network this client is connected to (e.g., "mainnet", "testnet").
4343
network: NetworkName,
4444
chain_id: String,
4545
}

notarization-rs/src/package.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use product_common::package_registry::PackageRegistry;
1111
use tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard, TryLockError};
1212

1313
use crate::error::Error;
14-
pub(crate) const MAINNET_CHAIN_ID: &str = "6364aad5";
1514

1615
type PackageRegistryLock = RwLockReadGuard<'static, PackageRegistry>;
1716
type PackageRegistryLockMut = RwLockWriteGuard<'static, PackageRegistry>;

0 commit comments

Comments
 (0)