Add missing requirements to ERC777 (#2212)

* Restore _approve check for zero sender

* Add non-zero operator check to _send
This commit is contained in:
Nicolás Venturo
2020-04-24 15:33:22 -03:00
committed by GitHub
parent 58a3368215
commit c75b016919
3 changed files with 31 additions and 5 deletions

View File

@ -23,4 +23,8 @@ contract ERC777Mock is Context, ERC777 {
) public {
_mint(operator, to, amount, userData, operatorData);
}
function approveInternal(address holder, address spender, uint256 value) public {
_approve(holder, spender, value);
}
}