|
@@ -96,7 +96,8 @@ abstract contract EIP712 {
|
|
|
return keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash));
|
|
|
}
|
|
|
|
|
|
- function _getChainId() private pure returns (uint256 chainId) {
|
|
|
+ function _getChainId() private view returns (uint256 chainId) {
|
|
|
+ this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
|
|
|
// solhint-disable-next-line no-inline-assembly
|
|
|
assembly {
|
|
|
chainId := chainid()
|