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

WIP: Launch contract for Metarun ERC-1155 collection #76

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ongrid
Copy link

@ongrid ongrid commented Feb 23, 2023

No description provided.

Comment on lines 519 to 531
uint256 qtyMinted = 0;

while (qtyMinted < qty) {
// find next available character (skip if already exists)
// this used to avoid reverts if by any reason id already taken
while (_collection.exists(nextCharacterIdToMint)) {
nextCharacterIdToMint += 1;
}
require(_collection.isKind(nextCharacterIdToMint, _collectionKind), "OUT_OF_KIND_BOUNDARIES");
// Current ERC1155 collection is Non-fungble, so amount can be just 1.
_collection.mint(to, nextCharacterIdToMint, 1);
qtyMinted += 1;
}
Copy link
Author

Choose a reason for hiding this comment

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

these lines are key points of integration

@hideto13 hideto13 force-pushed the metarun-launch-erc1155-mint branch from 566e4a0 to 450ee74 Compare March 2, 2023 08:05
@hideto13 hideto13 force-pushed the metarun-launch-erc1155-mint branch from 450ee74 to b141df2 Compare March 2, 2023 08:14
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.

None yet

3 participants