Skip to content

fix: added extra security measure for ERC20/ERC721 contracts#31

Open
martinvibes wants to merge 1 commit intoBlockheaderWeb3-Community:tokensfrom
martinvibes:tokens
Open

fix: added extra security measure for ERC20/ERC721 contracts#31
martinvibes wants to merge 1 commit intoBlockheaderWeb3-Community:tokensfrom
martinvibes:tokens

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