这个功能:
function initializeDomainSeparator() public {
// hash the name context with the contract address
EIP712_DOMAIN_HASH = keccak256(abi.encodePacked(// solium-disable-line
EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH,
keccak256(bytes(name)),
bytes32(address(this))
^^^^^^^^^^^^^^^^^^^
));
}
Run Code Online (Sandbox Code Playgroud)
正在消除此错误:
TypeError: Explicit type conversion not allowed from "address" to "bytes32".
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?杂注可靠性^0.8.4;