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

Logical error in transferWithPermit #27

Open
0xklapouchy opened this issue Jul 6, 2021 · 1 comment
Open

Logical error in transferWithPermit #27

0xklapouchy opened this issue Jul 6, 2021 · 1 comment

Comments

@0xklapouchy
Copy link

Hi,

There is a logical error in one of the require in transferWithPermit:

require(to != address(0) || to != address(this));

it should be

require(to != address(0) && to != address(this));

otherwise it has no sens as to=address(this) will pass.

@EmanHerawy
Copy link

make sense

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

No branches or pull requests

2 participants