-
Notifications
You must be signed in to change notification settings - Fork 31
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
test: test karstnft #77
Conversation
tests/test_karstnft.cairo
Outdated
} | ||
|
||
#[test] | ||
fn test_nft_count_on_init_is_zero() { |
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.
in here, I expected you'd be checking that the total supply on deployment is zero, not the balance of a user
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.
I checked the ERC721 component interface on openzeppelin but I couldn't find a function that returns the total supply. Do you have an idea of how to get it?
tests/test_karstnft.cairo
Outdated
} | ||
|
||
#[test] | ||
fn test_user_token_id_on_init_is_zero() { |
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.
you can delete this test case, not useful imo
@allcontributors please add @Jemiiah as contributor for code |
I've put up a pull request to add @Jemiiah! 🎉 |
No description provided.