From 09f8baef2a7fdfe127c72f1afa050c387a21f3cc Mon Sep 17 00:00:00 2001 From: Ignacio Amigo Date: Sun, 26 Jan 2025 00:52:00 -0300 Subject: [PATCH] reviews: fix rename --- bin/miden-cli/src/commands/new_account.rs | 4 ++-- crates/rust-client/build.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/miden-cli/src/commands/new_account.rs b/bin/miden-cli/src/commands/new_account.rs index adaa11772..67246d898 100644 --- a/bin/miden-cli/src/commands/new_account.rs +++ b/bin/miden-cli/src/commands/new_account.rs @@ -149,7 +149,7 @@ impl NewFaucetCmd { } let mut extra_components = Vec::new(); - for path in &self.template_files { + for path in &self.extra_components { let bytes = fs::read(path)?; let template = AccountComponentTemplate::read_from_bytes(&bytes).map_err(|e| { CliError::AccountComponentError( @@ -228,7 +228,7 @@ pub struct NewWalletCmd { impl NewWalletCmd { pub async fn execute(&self, mut client: Client) -> Result<(), CliError> { let mut extra_components = Vec::new(); - for path in &self.template_files { + for path in &self.extra_components { let bytes = fs::read(path)?; let template = AccountComponentTemplate::read_from_bytes(&bytes).map_err(|e| { CliError::AccountComponentError( diff --git a/crates/rust-client/build.rs b/crates/rust-client/build.rs index 3aabbd29a..ad3187c35 100644 --- a/crates/rust-client/build.rs +++ b/crates/rust-client/build.rs @@ -7,7 +7,7 @@ use std::{ use miden_lib::note::scripts::{p2id, p2idr, swap}; use miden_rpc_proto::write_proto; -use miette::{Error, IntoDiagnostic}; +use miette::IntoDiagnostic; use prost::Message; const STD_PROTO_OUT_DIR: &str = "src/rpc/generated/std";