Skip to content

Commit

Permalink
fix(LibMeta): comment unsed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
parv3213 committed May 20, 2022
1 parent d1230d4 commit 561f3e0
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions contracts/libs/LibMeta.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 561f3e0

Please sign in to comment.