-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
0565ae8
to
a1deb25
Compare
There was a problem hiding this 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": { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
No description provided.