Skip to content

Commit

Permalink
Fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Aug 14, 2024
1 parent 962a9c2 commit 1061167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fn main() {
for mut batch in batches {
let mut code_count = 1;
// Loop each code within the batch
while batch.qty > 1 {
while batch.qty >= 1 {
let mut promo = create_promo_key(&promo_prefix);
let wif = secret_to_wif(promo.private);
println!("Code {code_count} of batch {batch_count}: Promo: '{}' - Address: {} - WIF: {wif}", promo.code, promo.public);
Expand Down

0 comments on commit 1061167

Please sign in to comment.