Skip to content

Commit 75162ef

Browse files
committed
Restrict tests using salted instantiation to >=constantinople
1 parent f261053 commit 75162ef

File tree

8 files changed

+15
-1
lines changed

8 files changed

+15
-1
lines changed

test/libsolidity/semanticTests/constructor/no_callvalue_check.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ contract C {
1515
return true;
1616
}
1717
}
18+
// ====
19+
// EVMVersion: >=constantinople
1820
// ----
1921
// f(), 2000 ether -> true
2022
// gas irOptimized: 117688

test/libsolidity/semanticTests/functionCall/failed_create.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ contract C {
1414
}
1515
}
1616
// ====
17-
// EVMVersion: >=byzantium
17+
// EVMVersion: >=constantinople
1818
// ----
1919
// constructor(), 20 wei
2020
// gas irOptimized: 59688

test/libsolidity/semanticTests/immutable/multi_creation.sol

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ contract C {
2525
return (a, (new A{salt: hex"01"}()).f(), (new B{salt: hex"01"}()).f());
2626
}
2727
}
28+
// ====
29+
// EVMVersion: >=constantinople
2830
// ----
2931
// f() -> 3, 7, 5
3032
// gas irOptimized: 86892

test/libsolidity/semanticTests/inheritance/address_overload_resolution.sol

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ contract D {
1818
return (new C{salt: hex"01"}()).transfer(5);
1919
}
2020
}
21+
// ====
22+
// EVMVersion: >=constantinople
2123
// ----
2224
// f() -> 1
2325
// gas irOptimized: 77051

test/libsolidity/semanticTests/inheritance/member_notation_ctor.sol

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ contract A {
1717
return d.getX();
1818
}
1919
}
20+
// ====
21+
// EVMVersion: >=constantinople
2022
// ----
2123
// g(int256): -1 -> -1
2224
// gas legacy: 77955

test/libsolidity/semanticTests/operators/userDefined/operator_making_pure_external_call.sol

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ contract C {
5050
return -x;
5151
}
5252
}
53+
// ====
54+
// EVMVersion: >=constantinople
5355
// ----
5456
// testMul(int32,int32): 42, 10 -> 420
5557
// gas irOptimized: 102563

test/libsolidity/semanticTests/operators/userDefined/operator_making_view_external_call.sol

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ contract C {
5656
return -x;
5757
}
5858
}
59+
// ====
60+
// EVMVersion: >=constantinople
5961
// ----
6062
// testMul(int32,int32): 42, 10 -> 420
6163
// gas irOptimized: 102563

test/libsolidity/semanticTests/various/many_subassemblies.sol

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ contract D {
2828
new C10{salt: hex"0a"}();
2929
}
3030
}
31+
// ====
32+
// EVMVersion: >=constantinople
3133
// ----
3234
// run() ->
3335
// gas irOptimized: 375192

0 commit comments

Comments
 (0)