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

ERC-20 transferFrom greater than allowance not allowed #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

broccolirob
Copy link

Added a test to the ERC20 internal and external "basic" tests for ensuring that transferFrom doesn't transfer more than the allowance value. Also, updated the PROPERTIES readme with the new test.

assertEq(
balanceOf(msg.sender),
balance_sender,
"TransferFrom for more than amount approved source allowance"
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm not sure if i understand the 4 error messages, if given out of context (like, when the property fails).
something like "TransferFrom for more than approval affected sender/receiver balance" should be clearer, what do you think?

Copy link
Author

Choose a reason for hiding this comment

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

I updated the error messages, let me know if they sound clearer now.

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