forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultiple_methods.sol
46 lines (46 loc) · 950 Bytes
/
multiple_methods.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
contract test {
function f(uint a) public returns (uint d) { return a * 7; }
function g(uint b) public returns (uint e) { return b * 8; }
}
// ----
// :test
// [
// {
// "inputs": [
// {
// "internalType": "uint256",
// "name": "a",
// "type": "uint256"
// }
// ],
// "name": "f",
// "outputs": [
// {
// "internalType": "uint256",
// "name": "d",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// },
// {
// "inputs": [
// {
// "internalType": "uint256",
// "name": "b",
// "type": "uint256"
// }
// ],
// "name": "g",
// "outputs": [
// {
// "internalType": "uint256",
// "name": "e",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// }
// ]