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

10 lines
303 B
Solidity
Raw Normal View History

2020-01-22 14:48:56 +00:00
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"