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

Feature: Unlimited supply #50

Merged
merged 9 commits into from
Mar 30, 2023
Merged

Feature: Unlimited supply #50

merged 9 commits into from
Mar 30, 2023

Conversation

Szegoo
Copy link
Contributor

@Szegoo Szegoo commented Mar 5, 2023

Adds a new feature that allows unlimited supply inside a collection.

This PR changes the storage for the minting crate by changing the type of max_supply from u64 to Option<u64>.

To signal that the max_supply is not limited, it needs to be set to None.

Closes: #31

@Szegoo
Copy link
Contributor Author

Szegoo commented Mar 12, 2023

@ilionic PTAL.

@ilionic ilionic requested review from boyswan and Maar-io March 12, 2023 08:55
Copy link
Contributor

@boyswan boyswan left a comment

Choose a reason for hiding this comment

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

LGTM

crates/minting/src/internal.rs Outdated Show resolved Hide resolved
crates/minting/src/lib.rs Outdated Show resolved Hide resolved
crates/minting/tests/core.rs Outdated Show resolved Hide resolved
@Maar-io
Copy link
Contributor

Maar-io commented Mar 17, 2023

@Szegoo please start writing full description when you are opening PR. Plus you need to cover each and every new function with the test

@Szegoo
Copy link
Contributor Author

Szegoo commented Mar 17, 2023

@Szegoo please start writing full description when you are opening PR.

Sorry for that.

Plus you need to cover each and every new function with the test

I did write tests, did you mean I should write integration tests?

@Szegoo Szegoo requested a review from Maar-io March 21, 2023 09:53
@Maar-io Maar-io requested a review from boyswan March 21, 2023 14:23
Copy link
Contributor

@Maar-io Maar-io left a comment

Choose a reason for hiding this comment

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

Please update all integration tests under ./tests since this PR will break all of them.
Let me know if you need help

@Maar-io
Copy link
Contributor

Maar-io commented Mar 21, 2023

Please update PR description

Copy link
Contributor

@Maar-io Maar-io left a comment

Choose a reason for hiding this comment

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

LGTM

crates/minting/src/internal.rs Show resolved Hide resolved
@Szegoo Szegoo merged commit 0705d45 into rmrk-team:main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maxSupply: possibility to mint unlimited number of NFTs
3 participants