瀏覽代碼

Fix function state mutability warning (#2327)

Changes state mutability of granularity function from view to pure.
soham 5 年之前
父節點
當前提交
48072e439d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contracts/token/ERC777/ERC777.sol

+ 1 - 1
contracts/token/ERC777/ERC777.sol

@@ -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;
     }