-
Notifications
You must be signed in to change notification settings - Fork 27
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
Eip4 update #214
Conversation
lib-impl/src/main/java/org/ergoplatform/appkit/impl/OutBoxBuilderImpl.scala
Outdated
Show resolved
Hide resolved
lib-impl/src/main/java/org/ergoplatform/appkit/impl/OutBoxBuilderImpl.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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") | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Update to allow collection token minting in updated eip4
Must be merged with master 5.0 since develop currently has breaking changes