Skip to content

Commit

Permalink
chore(*): minor cleanup (#4022)
Browse files Browse the repository at this point in the history
* chore(*): minor cleanup

* Update crates/iota/src/iota_commands.rs

Co-authored-by: Thoralf-M <[email protected]>

* harmonize newlines

* fix wrong error log

---------

Co-authored-by: Thoralf-M <[email protected]>
  • Loading branch information
thibault-martinez and Thoralf-M authored Nov 13, 2024
1 parent 68c0914 commit f6d6cd8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion crates/iota-archival/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ iota-types = { workspace = true, features = ["test-utils"] }
[dev-dependencies]
# external dependencies
ed25519-consensus.workspace = true
fastcrypto = { workspace = true }
fastcrypto.workspace = true
more-asserts.workspace = true
tempfile.workspace = true
tokio = { workspace = true, features = ["test-util"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-open-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ versions = "4.1.0"
anyhow.workspace = true
bcs.workspace = true
clap.workspace = true
fastcrypto = { workspace = true }
fastcrypto.workspace = true
pretty_assertions.workspace = true
rand.workspace = true
tokio = { workspace = true, features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ path = "examples/json_rpc_errors.rs"
name = "utils"
path = "examples/utils.rs"
crate-type = ["staticlib"]
# Read API folder

# Read API folder
[[example]]
name = "checkpoints"
path = "examples/read_api/checkpoints.rs"
Expand Down
14 changes: 4 additions & 10 deletions crates/iota-sdk/examples/transaction_builder/function_move_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ use iota_sdk::{
base_types::ObjectID,
programmable_transaction_builder::ProgrammableTransactionBuilder,
quorum_driver_types::ExecuteTransactionRequestType,
transaction::{
Argument, CallArg, Command, ProgrammableMoveCall, Transaction, TransactionData,
},
transaction::{Argument, CallArg, Command, Transaction, TransactionData},
},
};
use shared_crypto::intent::Intent;
Expand Down Expand Up @@ -66,13 +64,9 @@ async fn main() -> Result<(), anyhow::Error> {
let package = ObjectID::from_hex_literal(pkg_id).map_err(|e| anyhow!(e))?;
let module = Identifier::new("hello_world").map_err(|e| anyhow!(e))?;
let function = Identifier::new("hello_world").map_err(|e| anyhow!(e))?;
ptb.command(Command::MoveCall(Box::new(ProgrammableMoveCall {
package,
module,
function,
type_arguments: vec![],
arguments: vec![Argument::Input(0)],
})));
ptb.command(Command::move_call(package, module, function, vec![], vec![
Argument::Input(0),
]));

// build the transaction block by calling finish on the ptb
let builder = ptb.finish();
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ once_cell.workspace = true
tempfile.workspace = true

# internal dependencies
iota-macros = { workspace = true }
iota-macros.workspace = true
iota-test-transaction-builder.workspace = true
iota-types = { workspace = true, features = ["test-utils"] }

Expand Down
2 changes: 1 addition & 1 deletion crates/iota-util-mem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "Collection of memory related utilities"
# external dependencies
cfg-if.workspace = true
ed25519-consensus.workspace = true
fastcrypto = { workspace = true }
fastcrypto.workspace = true
fastcrypto-tbls.workspace = true
hashbrown = { version = "0.12", optional = true }
impl-trait-for-tuples = "0.2.0"
Expand Down
12 changes: 6 additions & 6 deletions crates/iota/src/iota_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ pub enum IotaCommand {
#[clap(name = "start")]
Start {
/// Config directory that will be used to store network config, node db,
/// keystore iota genesis -f --with-faucet generates a genesis
/// config that can be used to start this process. Use with
/// caution as the `-f` flag will overwrite the existing config
/// directory. We can use any config dir that is generated by
/// the `iota genesis`.
/// keystore.
/// `iota genesis -f --with-faucet` generates a genesis config that can
/// be used to start this process. Use with caution as the `-f` flag
/// will overwrite the existing config directory. We can use any config
/// dir that is generated by the `iota genesis`.
#[clap(long = "network.config")]
config_dir: Option<std::path::PathBuf>,

Expand Down Expand Up @@ -527,7 +527,7 @@ impl IotaCommand {
PersistedConfig::read(&bridge_committee_config_path).map_err(|err| {
err.context(format!(
"Cannot open Bridge Committee config file at {:?}",
network_config_path
bridge_committee_config_path
))
})?;

Expand Down

0 comments on commit f6d6cd8

Please sign in to comment.