Draft EIP 1820 (#1677)
* Add barebones EIP1820 support. * Update openzeppelin-test-helpers dependency to have ERC1820 support. * Add tests for ERC1820. * Improve inline documentation. * Add changelog entry. * Update test-helpers, refactor tests to use new helpers. * Rename ERC1820 to ERC1820Implementer. * Improve implementer docstring. * Remove _implementsInterfaceForAddress. * update openzeppelin-test-helpers to 0.2.0 * Update contracts/drafts/ERC1820Implementer.sol Co-Authored-By: nventuro <nicolas.venturo@gmail.com> * Fix how solidity coverage is run to allow for free events. * Fix coverage testing script.
This commit is contained in:
9
contracts/mocks/ERC1820ImplementerMock.sol
Normal file
9
contracts/mocks/ERC1820ImplementerMock.sol
Normal file
@ -0,0 +1,9 @@
|
||||
pragma solidity ^0.5.2;
|
||||
|
||||
import "../drafts/ERC1820Implementer.sol";
|
||||
|
||||
contract ERC1820ImplementerMock is ERC1820Implementer {
|
||||
function registerInterfaceForAddress(bytes32 interfaceHash, address account) public {
|
||||
_registerInterfaceForAddress(interfaceHash, account);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user