Skip to content

assert-no-code

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

assert-no-code <target> [message]
Name Type Description
target address Address to check
[message] string Revert message when the assertion fails
load assertions
assertions:assert-no-code @me "expected an EOA"