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

Move requires/modifiers of net-emissions-token-network transfer() to safeTransferFrom #378

Open
brioux opened this issue Dec 29, 2021 · 1 comment

Comments

@brioux
Copy link
Member

brioux commented Dec 29, 2021

* Note: Token holders can arbitrarily call safeTransferFrom() without these checks

We should move the require statements/modifiers in the transfer() function to the _beforeTokenTransfer() hook.
This will ensure they are not skipped by users directly calling safeTransferFrom() or safeBatchTransferFrom().

Note: I have prepared a fix for this that will be implemented in a PR that introduces a new carbon token for Issue 372

@sichen1234
Copy link
Contributor

sichen1234 commented Dec 29, 2021 via email

@brioux brioux changed the title Move requires/modifiers of net-emissions-token-network transfer()to safeTransferFrom Move requires/modifiers of net-emissions-token-network transfer() to safeTransferFrom Dec 30, 2021
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