Skip to content

Commit f48dc89

Browse files
committed
Update tests.
1 parent 20833fb commit f48dc89

File tree

68 files changed

+597
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+597
-59
lines changed

test/libsolidity/ABIJson/include_fallback_function.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
contract test {
2-
function() external {}
2+
fallback() external {}
33
}
44
// ----
55
// :test

test/libsolidity/ABIJson/payabl_fallback_function.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
contract test {
2-
function () external payable {}
2+
fallback () external payable {}
33
}
44
// ----
55
// :test

test/libsolidity/ASTJSON/fallback.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
contract C {
2-
function() external payable {
2+
fallback() external payable {
33
}
44
}
55

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"absolutePath" : "a",
3+
"exportedSymbols" :
4+
{
5+
"C" :
6+
[
7+
9
8+
]
9+
},
10+
"id" : 10,
11+
"nodeType" : "SourceUnit",
12+
"nodes" :
13+
[
14+
{
15+
"baseContracts" : [],
16+
"contractDependencies" : [],
17+
"contractKind" : "contract",
18+
"documentation" : null,
19+
"fullyImplemented" : true,
20+
"id" : 9,
21+
"linearizedBaseContracts" :
22+
[
23+
9
24+
],
25+
"name" : "C",
26+
"nodeType" : "ContractDefinition",
27+
"nodes" :
28+
[
29+
{
30+
"body" :
31+
{
32+
"id" : 3,
33+
"nodeType" : "Block",
34+
"src" : "40:5:1",
35+
"statements" : []
36+
},
37+
"documentation" : null,
38+
"id" : 4,
39+
"implemented" : true,
40+
"kind" : "ether",
41+
"modifiers" : [],
42+
"name" : "",
43+
"nodeType" : "FunctionDefinition",
44+
"overrides" : null,
45+
"parameters" :
46+
{
47+
"id" : 1,
48+
"nodeType" : "ParameterList",
49+
"parameters" : [],
50+
"src" : "20:2:1"
51+
},
52+
"returnParameters" :
53+
{
54+
"id" : 2,
55+
"nodeType" : "ParameterList",
56+
"parameters" : [],
57+
"src" : "40:0:1"
58+
},
59+
"scope" : 9,
60+
"src" : "15:30:1",
61+
"stateMutability" : "payable",
62+
"superFunction" : 8,
63+
"visibility" : "external"
64+
},
65+
{
66+
"body" :
67+
{
68+
"id" : 7,
69+
"nodeType" : "Block",
70+
"src" : "76:5:1",
71+
"statements" : []
72+
},
73+
"documentation" : null,
74+
"id" : 8,
75+
"implemented" : true,
76+
"kind" : "fallback",
77+
"modifiers" : [],
78+
"name" : "",
79+
"nodeType" : "FunctionDefinition",
80+
"overrides" : null,
81+
"parameters" :
82+
{
83+
"id" : 5,
84+
"nodeType" : "ParameterList",
85+
"parameters" : [],
86+
"src" : "56:2:1"
87+
},
88+
"returnParameters" :
89+
{
90+
"id" : 6,
91+
"nodeType" : "ParameterList",
92+
"parameters" : [],
93+
"src" : "76:0:1"
94+
},
95+
"scope" : 9,
96+
"src" : "48:33:1",
97+
"stateMutability" : "payable",
98+
"superFunction" : null,
99+
"visibility" : "external"
100+
}
101+
],
102+
"scope" : 10,
103+
"src" : "0:83:1"
104+
}
105+
],
106+
"src" : "0:84:1"
107+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
contract C {
2+
ether() external payable {
3+
}
4+
fallback() external payable {
5+
}
6+
}
7+
8+
// ----
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
{
2+
"attributes" :
3+
{
4+
"absolutePath" : "a",
5+
"exportedSymbols" :
6+
{
7+
"C" :
8+
[
9+
9
10+
]
11+
}
12+
},
13+
"children" :
14+
[
15+
{
16+
"attributes" :
17+
{
18+
"baseContracts" :
19+
[
20+
null
21+
],
22+
"contractDependencies" :
23+
[
24+
null
25+
],
26+
"contractKind" : "contract",
27+
"documentation" : null,
28+
"fullyImplemented" : true,
29+
"linearizedBaseContracts" :
30+
[
31+
9
32+
],
33+
"name" : "C",
34+
"scope" : 10
35+
},
36+
"children" :
37+
[
38+
{
39+
"attributes" :
40+
{
41+
"documentation" : null,
42+
"implemented" : true,
43+
"isConstructor" : false,
44+
"kind" : "ether",
45+
"modifiers" :
46+
[
47+
null
48+
],
49+
"name" : "",
50+
"overrides" : null,
51+
"scope" : 9,
52+
"stateMutability" : "payable",
53+
"superFunction" : 8,
54+
"visibility" : "external"
55+
},
56+
"children" :
57+
[
58+
{
59+
"attributes" :
60+
{
61+
"parameters" :
62+
[
63+
null
64+
]
65+
},
66+
"children" : [],
67+
"id" : 1,
68+
"name" : "ParameterList",
69+
"src" : "20:2:1"
70+
},
71+
{
72+
"attributes" :
73+
{
74+
"parameters" :
75+
[
76+
null
77+
]
78+
},
79+
"children" : [],
80+
"id" : 2,
81+
"name" : "ParameterList",
82+
"src" : "40:0:1"
83+
},
84+
{
85+
"attributes" :
86+
{
87+
"statements" :
88+
[
89+
null
90+
]
91+
},
92+
"children" : [],
93+
"id" : 3,
94+
"name" : "Block",
95+
"src" : "40:5:1"
96+
}
97+
],
98+
"id" : 4,
99+
"name" : "FunctionDefinition",
100+
"src" : "15:30:1"
101+
},
102+
{
103+
"attributes" :
104+
{
105+
"documentation" : null,
106+
"implemented" : true,
107+
"isConstructor" : false,
108+
"kind" : "fallback",
109+
"modifiers" :
110+
[
111+
null
112+
],
113+
"name" : "",
114+
"overrides" : null,
115+
"scope" : 9,
116+
"stateMutability" : "payable",
117+
"superFunction" : null,
118+
"visibility" : "external"
119+
},
120+
"children" :
121+
[
122+
{
123+
"attributes" :
124+
{
125+
"parameters" :
126+
[
127+
null
128+
]
129+
},
130+
"children" : [],
131+
"id" : 5,
132+
"name" : "ParameterList",
133+
"src" : "56:2:1"
134+
},
135+
{
136+
"attributes" :
137+
{
138+
"parameters" :
139+
[
140+
null
141+
]
142+
},
143+
"children" : [],
144+
"id" : 6,
145+
"name" : "ParameterList",
146+
"src" : "76:0:1"
147+
},
148+
{
149+
"attributes" :
150+
{
151+
"statements" :
152+
[
153+
null
154+
]
155+
},
156+
"children" : [],
157+
"id" : 7,
158+
"name" : "Block",
159+
"src" : "76:5:1"
160+
}
161+
],
162+
"id" : 8,
163+
"name" : "FunctionDefinition",
164+
"src" : "48:33:1"
165+
}
166+
],
167+
"id" : 9,
168+
"name" : "ContractDefinition",
169+
"src" : "0:83:1"
170+
}
171+
],
172+
"id" : 10,
173+
"name" : "SourceUnit",
174+
"src" : "0:84:1"
175+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
contract C {
2-
function() external {}
2+
fallback() external {}
33
}
44

55
// ----
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"absolutePath" : "a",
3+
"exportedSymbols" :
4+
{
5+
"C" :
6+
[
7+
5
8+
]
9+
},
10+
"id" : 6,
11+
"nodeType" : "SourceUnit",
12+
"nodes" :
13+
[
14+
{
15+
"baseContracts" : [],
16+
"contractDependencies" : [],
17+
"contractKind" : "contract",
18+
"documentation" : null,
19+
"fullyImplemented" : true,
20+
"id" : 5,
21+
"linearizedBaseContracts" :
22+
[
23+
5
24+
],
25+
"name" : "C",
26+
"nodeType" : "ContractDefinition",
27+
"nodes" :
28+
[
29+
{
30+
"body" :
31+
{
32+
"id" : 3,
33+
"nodeType" : "Block",
34+
"src" : "40:5:1",
35+
"statements" : []
36+
},
37+
"documentation" : null,
38+
"id" : 4,
39+
"implemented" : true,
40+
"kind" : "ether",
41+
"modifiers" : [],
42+
"name" : "",
43+
"nodeType" : "FunctionDefinition",
44+
"overrides" : null,
45+
"parameters" :
46+
{
47+
"id" : 1,
48+
"nodeType" : "ParameterList",
49+
"parameters" : [],
50+
"src" : "20:2:1"
51+
},
52+
"returnParameters" :
53+
{
54+
"id" : 2,
55+
"nodeType" : "ParameterList",
56+
"parameters" : [],
57+
"src" : "40:0:1"
58+
},
59+
"scope" : 5,
60+
"src" : "15:30:1",
61+
"stateMutability" : "payable",
62+
"superFunction" : null,
63+
"visibility" : "external"
64+
}
65+
],
66+
"scope" : 6,
67+
"src" : "0:47:1"
68+
}
69+
],
70+
"src" : "0:48:1"
71+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contract C {
2+
ether() external payable {
3+
}
4+
}
5+
6+
// ----

0 commit comments

Comments
 (0)