Skip to content

Commit

Permalink
min amount fix for foundries
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Jul 2, 2024
1 parent cee8989 commit ae670f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ fn random_foundry_output(
) -> (OutputHeader, FoundryOutput) {
let foundry_output_header = random_output_header(rng);

let amount = rng.gen_range(1_000_000..10_000_000);
let supply = rng.gen_range(1_000_000..100_000_000);
let amount = rng.gen_range(1_000_000..10_000_000).min(supply);
let token_scheme = SimpleTokenScheme::new(supply, 0, supply).unwrap();
let foundry_output =
FoundryOutputBuilder::new_with_amount(amount, *serial_number, token_scheme.into())
Expand Down

0 comments on commit ae670f7

Please sign in to comment.