solidity/test/libsolidity/semanticTests/revertStrings/ether_non_payable_function.sol
2020-02-10 11:57:20 -03:00

10 lines
303 B
Solidity

contract C {
function f() public {}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
// f(), 1 ether -> FAILURE, hex"08c379a0", 0x20, 34, "Ether sent to non-payable functi", "on"
// () -> FAILURE, hex"08c379a0", 0x20, 53, "Contract does not have fallback ", "nor receive functions"