From 0b3d6ce50bfb4dbdd723b8a3853a6f850acfe214 Mon Sep 17 00:00:00 2001 From: logicalmechanism Date: Sat, 11 Jan 2025 17:30:28 -0800 Subject: [PATCH] working as expected --- seedelf-cli/src/commands/util/mint.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seedelf-cli/src/commands/util/mint.rs b/seedelf-cli/src/commands/util/mint.rs index 48517e7..2dcf6e2 100644 --- a/seedelf-cli/src/commands/util/mint.rs +++ b/seedelf-cli/src/commands/util/mint.rs @@ -69,6 +69,9 @@ pub async fn run(args: MintArgs, network_flag: bool) -> Result<(), String> { let usuable_utxos: Vec = utxos::select(owned_utxos, lovelace_goal, Assets::default()); + if usuable_utxos.is_empty() { + return Err("Not Enough Lovelace".to_string()); + } let (total_lovelace, change_tokens) = utxos::assets_of(usuable_utxos.clone()); for utxo in usuable_utxos.clone() {