@codehash
Read the keccak256 code hash of an address.
Returns: bytes32
Syntax
Section titled “Syntax”@codehash(address)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
address |
address |
Address to read |
Examples
Section titled “Examples”load assertions
assertions:assert-codehash 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb @codehash(0xf8D1677c8a0c961938bf2f9aDc3F3CFDA759A9d9) "implementation changed"