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: added extra security measure for ERC20/ERC721 contracts #31

Open
wants to merge 1 commit into
base: tokens
Choose a base branch
from

Conversation

martinvibes
Copy link

@martinvibes martinvibes commented Aug 12, 2024

Description:
This pull request addresses security vulnerabilities and adds security measures to both the ERC20 and ERC721 contracts. Below is a summary of the changes i made:

Changes made:
ERC20 Contract:
Added: onlyOwner modifier to restrict minting and burning functions to the contract owner.
Refactored: The transferFrom function to ensure balance checks and proper authorization.

ERC721 Contract:
Added: require check to certain functions to enhance security.
Refactored: ensuring only the owner can mint new tokens.

@martinvibes martinvibes changed the title fix: added extra security measure for ERC20/ERC721 fix: added extra security measure for ERC20/ERC721 contracts Aug 12, 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.

1 participant