assert-code
Assert an address has deployed code, on-chain.
Syntax
Section titled “Syntax”assert-code <target> [message]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
target |
address |
Address to check |
[message] |
string |
Revert message when the assertion fails |
Examples
Section titled “Examples”load assertions
assertions:assert-code 0x6B175474E89094C44Da98b954EedeAC495271d0F "not deployed"