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

fix(iota-framework): check already minted supply for CoinManager #3845

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

valeriyr
Copy link
Contributor

@valeriyr valeriyr commented Nov 1, 2024

Description of change

The issue originally concerned the capped_coin module.
Although it has already been removed from the framework, the issue is still relevant to CoinManager.

The capped_coin Rust module was removed.

Links to any relevant issues

fixes #415

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Bug fix (a non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@valeriyr valeriyr added the sc-platform Issues related to the Smart Contract Platform group. label Nov 1, 2024
@valeriyr valeriyr self-assigned this Nov 1, 2024
@valeriyr valeriyr requested review from a team as code owners November 1, 2024 10:13
// We should now have a Supply of 10.
assert!(wrapper.total_supply() == 10);

// Update the maximum supply that lower than the total supply, this should not be allowed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Update the maximum supply that lower than the total supply, this should not be allowed.
// Update the maximum supply to be lower than the total supply, this should not be allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 89806e9

scenario.end();
}

#[test]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[test]
#[test]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 89806e9

option::none(),
scenario.ctx(),
);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also in the test above there is this double newline, I guess we can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 89806e9

@@ -161,10 +246,10 @@ module iota::coin_manager_tests {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 89806e9

Copy link
Contributor

@muXxer muXxer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@miker83z miker83z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@samuel-rufi samuel-rufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, looks good!

@valeriyr valeriyr merged commit 645b6b9 into develop Nov 4, 2024
38 checks passed
@valeriyr valeriyr deleted the sc-platform/issue-415-check-already-minted-supply branch November 4, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug (L1SC)]: Check already minted supply for create_max_supply_policy()
5 participants