use crate::app::App;
use anyhow::Result;
use clap::Parser;
use gear_core::ids::ActorId;
#[derive(Clone, Debug, Parser)]
pub struct Transfer {
destination: ActorId,
value: u128,
}
impl Transfer {
pub async fn exec(self, app: &App) -> Result<()> {
let api = app.signed_api().await?;
api.transfer_keep_alive(self.destination, self.value)
.await?;
println!("Successfully transferred the value");
Ok(())
}
}