Skip to content

Commit

Permalink
rm supply check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Jul 2, 2024
1 parent ae670f7 commit d275f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn create_bag_with_pt() {
.with_unlock_conditions([UnlockCondition::from(
ImmutableAliasAddressUnlockCondition::new(owner),
)])
.finish_with_params(supply)
.finish()
.unwrap();
let foundry_id = foundry.id();
let foundry_package_data = NativeTokenPackageData::new(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ 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())
.with_unlock_conditions([UnlockCondition::from(
ImmutableAliasAddressUnlockCondition::new(owner),
)])
.finish_with_params(supply)
.finish()
.unwrap();

*serial_number += 1;
Expand Down

0 comments on commit d275f09

Please sign in to comment.