solidity/test/libsolidity/semanticTests/revertStrings/called_contract_has_code.sol

13 lines
321 B
Solidity
Raw Normal View History

2020-01-22 14:48:56 +00:00
contract C {
function f() external {}
function g() external {
C c = C(address(0x0000000000000000000000000000000000000000000000000000000000000000));
2020-01-22 14:48:56 +00:00
c.f();
}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
// g() -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"