Skip to content

assertions:assert-no-code

Assert an address has no deployed code, on-chain.

assertions:assert-no-code <target> [message]
NameTypeDescription
targetaddressAddress to check
[message]stringRevert message when the assertion fails
load assertions
assertions:assert-no-code @me "expected an EOA"