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

♻️ Tidy and minor optimizations #119

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

Vectorized
Copy link
Owner

@Vectorized Vectorized commented Mar 19, 2024

Description

  • Make _isApprovedForAll an internal virtual function that can be overridden.
  • Use _getApproved in _transferFromNFT.
  • Use _isZero, cuz solc is dumb sometimes.
  • Use $.addressData[owner] whereever we don't need to access the skipNFT status of owner.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge snapshot?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

@Vectorized Vectorized merged commit a80604e into main Mar 19, 2024
13 checks passed
@Vectorized Vectorized deleted the vectorized/opt-and-tidy branch March 19, 2024 22:44
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.

1 participant