Commit 394987f3 by Nicolás Venturo

Fix ERC777 hook docs, fixes #2256

parent df4b317f
...@@ -491,13 +491,13 @@ contract ERC777 is Context, IERC777, IERC20 { ...@@ -491,13 +491,13 @@ contract ERC777 is Context, IERC777, IERC20 {
* *
* Calling conditions: * Calling conditions:
* *
* - when `from` and `to` are both non-zero, ``from``'s `tokenId` will be * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* transferred to `to`. * will be to transferred to `to`.
* - when `from` is zero, `tokenId` will be minted for `to`. * - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, ``from``'s `tokenId` will be burned. * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero. * - `from` and `to` are never both zero.
* *
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/ */
function _beforeTokenTransfer(address operator, address from, address to, uint256 tokenId) internal virtual { } function _beforeTokenTransfer(address operator, address from, address to, uint256 amount) internal virtual { }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment