(cherry picked from commit bd13be9174)
This commit is contained in:
Francisco Giordano
2019-05-23 18:19:45 -03:00
parent e41daba7b4
commit d95f5e2e50
3 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ library ERC165Checker {
* *
* See `IERC165.supportsInterface`. * See `IERC165.supportsInterface`.
*/ */
function _supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { function _supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
// query support of ERC165 itself // query support of ERC165 itself
if (!_supportsERC165(account)) { if (!_supportsERC165(account)) {
return false; return false;

View File

@ -348,7 +348,7 @@ contract ERC777 is IERC777, IERC20 {
bytes memory operatorData, bytes memory operatorData,
bool requireReceptionAck bool requireReceptionAck
) )
private private
{ {
require(from != address(0), "ERC777: send from the zero address"); require(from != address(0), "ERC777: send from the zero address");
require(to != address(0), "ERC777: send to the zero address"); require(to != address(0), "ERC777: send to the zero address");
@ -375,7 +375,7 @@ contract ERC777 is IERC777, IERC20 {
bytes memory data, bytes memory data,
bytes memory operatorData bytes memory operatorData
) )
private private
{ {
require(from != address(0), "ERC777: burn from the zero address"); require(from != address(0), "ERC777: burn from the zero address");
@ -433,7 +433,7 @@ contract ERC777 is IERC777, IERC20 {
bytes memory userData, bytes memory userData,
bytes memory operatorData bytes memory operatorData
) )
private private
{ {
address implementer = _erc1820.getInterfaceImplementer(from, TOKENS_SENDER_INTERFACE_HASH); address implementer = _erc1820.getInterfaceImplementer(from, TOKENS_SENDER_INTERFACE_HASH);
if (implementer != address(0)) { if (implementer != address(0)) {
@ -461,7 +461,7 @@ contract ERC777 is IERC777, IERC20 {
bytes memory operatorData, bytes memory operatorData,
bool requireReceptionAck bool requireReceptionAck
) )
private private
{ {
address implementer = _erc1820.getInterfaceImplementer(to, TOKENS_RECIPIENT_INTERFACE_HASH); address implementer = _erc1820.getInterfaceImplementer(to, TOKENS_RECIPIENT_INTERFACE_HASH);
if (implementer != address(0)) { if (implementer != address(0)) {

View File

@ -10,7 +10,7 @@ pragma solidity ^0.5.0;
* *
* See `IERC1820Registry` and `ERC1820Implementer`. * See `IERC1820Registry` and `ERC1820Implementer`.
*/ */
interface IERC777Recipient { interface IERC777Recipient {
/** /**
* @dev Called by an `IERC777` token contract whenever tokens are being * @dev Called by an `IERC777` token contract whenever tokens are being
* moved or created into a registered account (`to`). The type of operation * moved or created into a registered account (`to`). The type of operation