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

Eip4 update #214

Merged
merged 9 commits into from
Feb 23, 2023
Merged

Eip4 update #214

merged 9 commits into from
Feb 23, 2023

Conversation

mgpai22
Copy link
Collaborator

@mgpai22 mgpai22 commented Feb 19, 2023

Update to allow collection token minting in updated eip4

Must be merged with master 5.0 since develop currently has breaking changes

@aslesarenko aslesarenko changed the base branch from master to develop February 20, 2023 11:32
Copy link
Member

@aslesarenko aslesarenko left a comment

Choose a reason for hiding this comment

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

Please add test cases in Eip4TokenBuilderTest for newly added ARTWORK_COLLECTION.
Both positive and negative to cover error branches.

}
if(token.getMintingBoxR9 != null){
throw new IllegalArgumentException("R9 cannot exist without R7")
}
Copy link
Member

Choose a reason for hiding this comment

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

That is a lot of nesting. It would be easier to add nulls to _registers and then just check finally that _registers don't have nulls. And throw otherwise. This will be easier to cover with tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This has some logic error which fails tests, please see how I changed implementation to remove nested statements.

Copy link
Member

@aslesarenko aslesarenko left a comment

Choose a reason for hiding this comment

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

Please fix the errors

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.

2 participants