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

♻️ Revert to the Original Implementation of ERC721 #1335

Merged
merged 4 commits into from
Feb 2, 2025
Merged

Conversation

atarpara
Copy link
Collaborator

@atarpara atarpara commented Feb 1, 2025

Description

Reverts #1245 changes

Checklist

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

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

@atarpara atarpara requested a review from Vectorized February 1, 2025 04:10
@atarpara
Copy link
Collaborator Author

atarpara commented Feb 1, 2025

@kadenzipfel can you please again review it.

@Vectorized
Copy link
Owner

@atarpara also update the zksync variant hehe

@Vectorized Vectorized merged commit 21e3649 into main Feb 2, 2025
13 checks passed
@Vectorized Vectorized deleted the o721 branch February 2, 2025 23:32
@Vectorized
Copy link
Owner

In halmos we trust.

@kadenzipfel
Copy link
Contributor

I assume this is being reverted due to the low likelihood of the issue occurring in practice? If so, I don't see any other issue with this logic, but I would recommend at least adding some documentation to explain the circumstance where the overflow check can fail

Fwiw I think it's worth it to have the extra safe overflow check, especially since I think it only saves about 3 gas

@Vectorized
Copy link
Owner

@kadenzipfel The overflow check will never fail.

type(uint256).max + 1 == 0.

@kadenzipfel
Copy link
Contributor

@kadenzipfel The overflow check will never fail.

type(uint256).max + 1 == 0.

Big oof lol. Guess we're all good then!

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