Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved owner check from public to internal function in ERC721 contract…
… - resolves issue OpenZeppelin#4136 Updated ERC721._approve function to include a check for the owner before approval is granted. This ensures that the owner is not accidentally approved and prevents unnecessary sload calls. Moved the check from the public ERC721.approve function to the internal ERC721._approve function. Resolves issue OpenZeppelin#4136.
- Loading branch information