diff --git a/cmd/soroban-cli/src/commands/tx/new/create_account.rs b/cmd/soroban-cli/src/commands/tx/new/create_account.rs index 280fc75bd..4ae1c13d2 100644 --- a/cmd/soroban-cli/src/commands/tx/new/create_account.rs +++ b/cmd/soroban-cli/src/commands/tx/new/create_account.rs @@ -1,6 +1,6 @@ use clap::{command, Parser}; -use crate::{commands::tx, config::address, xdr}; +use crate::{commands::tx, config::address, tx::builder, xdr}; #[derive(Parser, Debug, Clone)] #[group(skip)] @@ -20,7 +20,7 @@ impl TryFrom<&Cmd> for xdr::OperationBody { fn try_from(cmd: &Cmd) -> Result { Ok(xdr::OperationBody::CreateAccount(xdr::CreateAccountOp { destination: cmd.tx.reslove_account_id(&cmd.destination)?, - starting_balance: cmd.starting_balance, + starting_balance: cmd.starting_balance.into(), })) } } diff --git a/cmd/soroban-cli/src/commands/tx/new/payment.rs b/cmd/soroban-cli/src/commands/tx/new/payment.rs index 1ab999ab9..397bf68a7 100644 --- a/cmd/soroban-cli/src/commands/tx/new/payment.rs +++ b/cmd/soroban-cli/src/commands/tx/new/payment.rs @@ -25,6 +25,6 @@ impl TryFrom<&Cmd> for xdr::OperationBody { destination: cmd.tx.reslove_muxed_address(&cmd.destination)?, asset: cmd.asset.clone().into(), amount: cmd.amount.into(), - }) + })) } }