Commit 1e584e49 by tincho Committed by Nicolás Venturo

Fix errors in ERC777 docstrings (#1797)

parent d9d10822
...@@ -238,7 +238,7 @@ contract ERC777 is IERC777, IERC20 { ...@@ -238,7 +238,7 @@ contract ERC777 is IERC777, IERC20 {
/** /**
* @dev See `IERC777.operatorBurn`. * @dev See `IERC777.operatorBurn`.
* *
* Emits `Sent` and `Transfer` events. * Emits `Burned` and `Transfer` events.
*/ */
function operatorBurn(address account, uint256 amount, bytes calldata data, bytes calldata operatorData) external { function operatorBurn(address account, uint256 amount, bytes calldata data, bytes calldata operatorData) external {
require(isOperatorFor(msg.sender, account), "ERC777: caller is not an operator for holder"); require(isOperatorFor(msg.sender, account), "ERC777: caller is not an operator for holder");
...@@ -274,7 +274,7 @@ contract ERC777 is IERC777, IERC20 { ...@@ -274,7 +274,7 @@ contract ERC777 is IERC777, IERC20 {
* call `transferFrom` (unless they have allowance), and accounts with * call `transferFrom` (unless they have allowance), and accounts with
* allowance cannot call `operatorSend` (unless they are operators). * allowance cannot call `operatorSend` (unless they are operators).
* *
* Emits `Sent` and `Transfer` events. * Emits `Sent`, `Transfer` and `Approval` events.
*/ */
function transferFrom(address holder, address recipient, uint256 amount) external returns (bool) { function transferFrom(address holder, address recipient, uint256 amount) external returns (bool) {
require(recipient != address(0), "ERC777: transfer to the zero address"); require(recipient != address(0), "ERC777: transfer to the zero address");
...@@ -296,12 +296,12 @@ contract ERC777 is IERC777, IERC20 { ...@@ -296,12 +296,12 @@ contract ERC777 is IERC777, IERC20 {
* @dev Creates `amount` tokens and assigns them to `account`, increasing * @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply. * the total supply.
* *
* If a send hook is registered for `raccount`, the corresponding function * If a send hook is registered for `account`, the corresponding function
* will be called with `operator`, `data` and `operatorData`. * will be called with `operator`, `data` and `operatorData`.
* *
* See `IERC777Sender` and `IERC777Recipient`. * See `IERC777Sender` and `IERC777Recipient`.
* *
* Emits `Sent` and `Transfer` events. * Emits `Minted` and `Transfer` events.
* *
* Requirements * Requirements
* *
......
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