Improve encapsulation on ERC165 and update code style guide (#1379)
* use prefix underscore for internal state variables * make _supportedInterfaces private
This commit is contained in:
committed by
Nicolás Venturo
parent
9f822906b8
commit
03dfb2965c
@ -18,7 +18,7 @@ contract ERC165 is IERC165 {
|
||||
/**
|
||||
* @dev a mapping of interface id to whether or not it's supported
|
||||
*/
|
||||
mapping(bytes4 => bool) internal _supportedInterfaces;
|
||||
mapping(bytes4 => bool) private _supportedInterfaces;
|
||||
|
||||
/**
|
||||
* @dev A contract implementing SupportsInterfaceWithLookup
|
||||
|
||||
Reference in New Issue
Block a user