Skip to content

Commit

Permalink
Restrict tests using salted instantiation to >=constantinople
Browse files Browse the repository at this point in the history
  • Loading branch information
clonker authored and cameel committed Jan 30, 2025
1 parent a669f79 commit 46cbf39
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ contract C {
return true;
}
}
// ====
// EVMVersion: >=constantinople
// ----
// f(), 2000 ether -> true
// gas irOptimized: 117688
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contract C {
}
}
// ====
// EVMVersion: >=byzantium
// EVMVersion: >=constantinople
// ----
// constructor(), 20 wei
// gas irOptimized: 59688
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/semanticTests/immutable/multi_creation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ contract C {
return (a, (new A{salt: hex"01"}()).f(), (new B{salt: hex"01"}()).f());
}
}
// ====
// EVMVersion: >=constantinople
// ----
// f() -> 3, 7, 5
// gas irOptimized: 86892
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ contract D {
return (new C{salt: hex"01"}()).transfer(5);
}
}
// ====
// EVMVersion: >=constantinople
// ----
// f() -> 1
// gas irOptimized: 77051
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ contract A {
return d.getX();
}
}
// ====
// EVMVersion: >=constantinople
// ----
// g(int256): -1 -> -1
// gas legacy: 77955
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ contract C {
return -x;
}
}
// ====
// EVMVersion: >=constantinople
// ----
// testMul(int32,int32): 42, 10 -> 420
// gas irOptimized: 102563
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ contract C {
return -x;
}
}
// ====
// EVMVersion: >=constantinople
// ----
// testMul(int32,int32): 42, 10 -> 420
// gas irOptimized: 102563
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/semanticTests/various/many_subassemblies.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ contract D {
new C10{salt: hex"0a"}();
}
}
// ====
// EVMVersion: >=constantinople
// ----
// run() ->
// gas irOptimized: 375192
Expand Down

0 comments on commit 46cbf39

Please sign in to comment.