Skip to content

Commit

Permalink
cli enhancements WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Mar 7, 2024
1 parent 5df0a13 commit d66d3ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/trusted_base_cli/commands/set_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use std::boxed::Box;

#[derive(Parser)]
pub struct SetBalanceCommand {
/// sender's AccountId in ss58check format
/// subject's AccountId in ss58check format
account: String,

/// amount to be transferred
Expand Down
5 changes: 3 additions & 2 deletions cli/src/trusted_base_cli/commands/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use crate::{
trusted_operation::perform_trusted_operation,
Cli, CliResult, CliResultOk,
};
use base58::ToBase58;
use ita_parentchain_interface::integritee::Balance;
use ita_stf::{Getter, Index, TrustedCall, TrustedCallSigned};
use itp_stf_primitives::{
Expand Down Expand Up @@ -54,11 +55,11 @@ impl TransferCommand {
let (mrenclave, shard) = get_identifiers(trusted_args);
let nonce = get_layer_two_nonce!(from, cli, trusted_args);
println!(
"send trusted call transfer from {} to {}: {}, nonce: {}",
"send trusted call transfer from {} to {}: {}, nonce: {}, signing using mrenclave: {} and shard: {}",
from.public(),
to,
self.amount,
nonce
nonce, mrenclave.to_base58(), shard.0.to_base58()
);
let top: TrustedOperation<TrustedCallSigned, Getter> =
TrustedCall::balance_transfer(from.public().into(), to, self.amount)
Expand Down

0 comments on commit d66d3ab

Please sign in to comment.