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

Feat: Add OpenZeppelin ERC20 tests #7

Merged
merged 10 commits into from
Jun 7, 2024
Merged

Feat: Add OpenZeppelin ERC20 tests #7

merged 10 commits into from
Jun 7, 2024

Conversation

karacurt
Copy link
Contributor

No description provided.

@karacurt karacurt force-pushed the feat/erc20-tests branch from 0565ae8 to a1deb25 Compare May 31, 2024 19:24
@karacurt karacurt changed the title Feat: ERC20 tests forked from openzeppeling Feat: ERC20 tests forked from OpenZeppelin May 31, 2024
@karacurt karacurt changed the title Feat: ERC20 tests forked from OpenZeppelin Feat: Add OpenZeppelin ERC20 tests May 31, 2024
Copy link

@kellan-simiotics kellan-simiotics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@@ -5,6 +5,8 @@
"packages": {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need to check in the lock file.

require(allowance[from][msg.sender] >= value);
allowance[from][msg.sender] -= value;
}
if (msg.sender != from && allowance[from][msg.sender] != type(uint256).max) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems as though the Openzeppelin contract allows setting an allowance on yourself. Don't have a strong preference on this.

@karacurt karacurt merged commit c4fcb5e into main Jun 7, 2024
1 check passed
@karacurt karacurt deleted the feat/erc20-tests branch June 7, 2024 22:48
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