mirror of
https://github.com/aljazceru/clArk.git
synced 2025-12-18 13:44:19 +01:00
Rename noah send command to send-round
This commit is contained in:
@@ -95,9 +95,9 @@ enum Command {
|
|||||||
destination: String,
|
destination: String,
|
||||||
amount: Amount,
|
amount: Amount,
|
||||||
},
|
},
|
||||||
/// Send money through Ark.
|
/// Send money in an Ark round.
|
||||||
#[command()]
|
#[command()]
|
||||||
Send {
|
SendRound {
|
||||||
/// Destination for the payment, this can either be an on-chain address
|
/// Destination for the payment, this can either be an on-chain address
|
||||||
/// or a public key for an Ark payment.
|
/// or a public key for an Ark payment.
|
||||||
destination: String,
|
destination: String,
|
||||||
@@ -226,7 +226,7 @@ async fn inner_main(cli: Cli) -> anyhow::Result<()> {
|
|||||||
w.send_oor_payment(pk, amount).await?;
|
w.send_oor_payment(pk, amount).await?;
|
||||||
info!("Success");
|
info!("Success");
|
||||||
},
|
},
|
||||||
Command::Send { destination, amount } => {
|
Command::SendRound { destination, amount } => {
|
||||||
if let Ok(pk) = PublicKey::from_str(&destination) {
|
if let Ok(pk) = PublicKey::from_str(&destination) {
|
||||||
debug!("Sending to Ark public key {}", pk);
|
debug!("Sending to Ark public key {}", pk);
|
||||||
w.send_ark_payment(pk, amount).await?;
|
w.send_ark_payment(pk, amount).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user