Skip to content

Commit

Permalink
Fix function state mutability warning (#2327)
Browse files Browse the repository at this point in the history
Changes state mutability of granularity function from view to pure.
  • Loading branch information
zemse authored Aug 12, 2020
1 parent 04fc357 commit 48072e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/token/ERC777/ERC777.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ contract ERC777 is Context, IERC777, IERC20 {
*
* This implementation always returns `1`.
*/
function granularity() public view override returns (uint256) {
function granularity() public pure override returns (uint256) {
return 1;
}

Expand Down

0 comments on commit 48072e4

Please sign in to comment.