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

test: test karstnft #77

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Conversation

Jemiiah
Copy link
Contributor

@Jemiiah Jemiiah commented Jun 29, 2024

No description provided.

}

#[test]
fn test_nft_count_on_init_is_zero() {
Copy link
Member

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

Copy link
Contributor Author

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?

}

#[test]
fn test_user_token_id_on_init_is_zero() {
Copy link
Member

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

tests/test_karstnft.cairo Show resolved Hide resolved
@Darlington02 Darlington02 merged commit f486582 into horuslabsio:main Jul 5, 2024
2 checks passed
@Darlington02
Copy link
Member

@allcontributors please add @Jemiiah as contributor for code

Copy link
Contributor

@Darlington02

I've put up a pull request to add @Jemiiah! 🎉

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.

3 participants