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

add require quantity > 0 in _safeMint() #27

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

willisk
Copy link
Contributor

@willisk willisk commented Jan 25, 2022

_safeMint is missing a require quantity > 0. This can lead to odd behaviour.
Resolves #18

Copy link
Collaborator

@cygaar cygaar 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 tests for this

@willisk
Copy link
Contributor Author

willisk commented Jan 27, 2022

Added a test case.
Like someone had mentioned before, I was struggling to get the correct prettier formatting settings. It seems like the .prettierrc only specifies the settings for .sol files (but they aren't even applied, because you have double quotes instead of single quotes)..

@cygaar
Copy link
Collaborator

cygaar commented Jan 27, 2022

I added in your lint settings in a separate PR so you should be able to rebase and have no issues

@willisk
Copy link
Contributor Author

willisk commented Jan 27, 2022

The prettier outputs still don't seem to match up for the .js files. Could this be due to different prettier / eslint versions?
npx eslint -v
v8.7.0
npx prettier -v
2.5.1

@cygaar
Copy link
Collaborator

cygaar commented Jan 28, 2022

I have the same versions as you... odd. I'm ok with the lint changes that you on your end though

@cygaar cygaar merged commit cda1a5a into chiru-labs:main Jan 28, 2022
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.

Comments on ERC721A
2 participants