From 561f3e0aa48fda9d74f16a7596a8113b028c0fd9 Mon Sep 17 00:00:00 2001 From: Parv Date: Fri, 20 May 2022 20:42:29 +0530 Subject: [PATCH] fix(LibMeta): comment unsed functions --- contracts/libs/LibMeta.sol | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/contracts/libs/LibMeta.sol b/contracts/libs/LibMeta.sol index de7a4648..475cc3d5 100644 --- a/contracts/libs/LibMeta.sol +++ b/contracts/libs/LibMeta.sol @@ -4,35 +4,35 @@ pragma solidity 0.8.9; import {LibAppStorage, AppStorage} from "./LibAppStorage.sol"; library LibMeta { - bytes32 internal constant _EIP712_DOMAIN_TYPEHASH = - keccak256( - bytes( - "EIP712Domain(string name,string version,uint256 salt,address verifyingContract)" - ) - ); + // bytes32 internal constant _EIP712_DOMAIN_TYPEHASH = + // keccak256( + // bytes( + // "EIP712Domain(string name,string version,uint256 salt,address verifyingContract)" + // ) + // ); - function domainSeparator(string memory name, string memory version) - internal - view - returns (bytes32) - { - return - keccak256( - abi.encode( - _EIP712_DOMAIN_TYPEHASH, - keccak256(bytes(name)), - keccak256(bytes(version)), - getChainID(), - address(this) - ) - ); - } + // function domainSeparator(string memory name, string memory version) + // internal + // view + // returns (bytes32) + // { + // return + // keccak256( + // abi.encode( + // _EIP712_DOMAIN_TYPEHASH, + // keccak256(bytes(name)), + // keccak256(bytes(version)), + // getChainID(), + // address(this) + // ) + // ); + // } - function getChainID() internal view returns (uint256 id) { - assembly { - id := chainid() - } - } + // function getChainID() internal view returns (uint256 id) { + // assembly { + // id := chainid() + // } + // } function msgSender() internal view returns (address sender) { AppStorage storage s = LibAppStorage.diamondStorage();