mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
267 B
Solidity
17 lines
267 B
Solidity
|
contract test {
|
||
|
receive() external payable {}
|
||
|
fallback() external {}
|
||
|
}
|
||
|
// ----
|
||
|
// :test
|
||
|
// [
|
||
|
// {
|
||
|
// "stateMutability": "nonpayable",
|
||
|
// "type": "fallback"
|
||
|
// },
|
||
|
// {
|
||
|
// "stateMutability": "payable",
|
||
|
// "type": "receive"
|
||
|
// }
|
||
|
// ]
|