diff --git a/CODE_STYLE.md b/CODE_STYLE.md index d3337b16f..0c00a15a5 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -23,6 +23,7 @@ Any exception or additions specific to our project are documented below. ``` contract TestContract { uint256 private _privateVar; + uint256 internal _internalVar; } ``` diff --git a/contracts/introspection/ERC165.sol b/contracts/introspection/ERC165.sol index 1af78d111..0c8637297 100644 --- a/contracts/introspection/ERC165.sol +++ b/contracts/introspection/ERC165.sol @@ -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 diff --git a/contracts/mocks/ERC165/ERC165InterfacesSupported.sol b/contracts/mocks/ERC165/ERC165InterfacesSupported.sol index 1a06e9d52..e41901a32 100644 --- a/contracts/mocks/ERC165/ERC165InterfacesSupported.sol +++ b/contracts/mocks/ERC165/ERC165InterfacesSupported.sol @@ -21,7 +21,7 @@ contract SupportsInterfaceWithLookupMock 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 @@ -41,7 +41,7 @@ contract SupportsInterfaceWithLookupMock is IERC165 { view returns (bool) { - return supportedInterfaces[interfaceId]; + return _supportedInterfaces[interfaceId]; } /** @@ -51,7 +51,7 @@ contract SupportsInterfaceWithLookupMock is IERC165 { internal { require(interfaceId != 0xffffffff); - supportedInterfaces[interfaceId] = true; + _supportedInterfaces[interfaceId] = true; } }