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

fix: Incorrect payable Modifier Usage #106

Closed
wants to merge 1 commit into from

Conversation

Anon-im
Copy link
Contributor

@Anon-im Anon-im commented Dec 25, 2024

The payable modifier allows a function to accept Ether (ETH) when it is called. In the IERC721 interface, the functions safeTransferFrom, transferFrom, and approve are not designed to handle Ether transfers and are intended solely for managing NFTs.

By marking a function as payable, you enable the ability to send Ether when calling this function, which can result in unintended Ether being credited to the contract. This could lead to potential vulnerabilities or errors when interacting with the contract.

@critesjosh critesjosh closed this Dec 26, 2024
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.

2 participants