Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add burn-tari to make-it-rain #5038

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ pub async fn make_it_rain(
)
.await
},
MakeItRainTransactionType::BurnTari => burn_tari(tx_service, fee, amount, msg.clone()).await,
};
let submit_time = Instant::now();

Expand Down
5 changes: 5 additions & 0 deletions applications/tari_console_wallet/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ pub struct MakeItRainArgs {
pub one_sided: bool,
#[clap(long, alias = "stealth-one-sided")]
pub stealth: bool,
#[clap(short, long)]
pub burn_tari: bool,
#[clap(short, long, default_value = "Make it rain")]
pub message: String,
}
Expand All @@ -183,6 +185,8 @@ impl MakeItRainArgs {
MakeItRainTransactionType::StealthOneSided
} else if self.one_sided {
MakeItRainTransactionType::OneSided
} else if self.burn_tari {
MakeItRainTransactionType::BurnTari
} else {
MakeItRainTransactionType::Interactive
}
Expand All @@ -194,6 +198,7 @@ pub enum MakeItRainTransactionType {
Interactive,
OneSided,
StealthOneSided,
BurnTari,
}

impl Display for MakeItRainTransactionType {
Expand Down