assertions:assert-no-code
Assert an address has no deployed code, on-chain.
Syntax
Section titled “Syntax”assertions:assert-no-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-no-code @me "expected an EOA"