solidity/test/libsolidity/semanticTests/revertStrings/called_contract_has_code.sol
2021-01-14 18:45:12 +01:00

14 lines
344 B
Solidity

contract C {
function f() external {}
function g() external {
C c = C(address(0x0000000000000000000000000000000000000000000000000000000000000000));
c.f();
}
}
// ====
// EVMVersion: >=byzantium
// compileViaYul: also
// revertStrings: debug
// ----
// g() -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"