solidity/test/libsolidity/ABIJson/receive_ether_and_fallback_function.sol

17 lines
267 B
Solidity
Raw Normal View History

contract test {
receive() external payable {}
fallback() external {}
}
// ----
// :test
// [
// {
// "stateMutability": "nonpayable",
// "type": "fallback"
// },
// {
// "stateMutability": "payable",
// "type": "receive"
// }
// ]