You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
The text was updated successfully, but these errors were encountered:
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
blockchain-carbon-accounting/net-emissions-token-network/contracts/NetEmissionsTokenNetwork.sol
Line 593 in 1c5bc0a
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
The text was updated successfully, but these errors were encountered: