Fix v1/v2 tests to behave like they did pre-0.8.0

This commit is contained in:
Alex Beregszaszi 2021-05-17 09:54:52 +01:00
parent 299873182b
commit 3e8e5f3bf9
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,5 @@
==== Source: A ==== ==== Source: A ====
pragma abicoder v2; pragma abicoder v2;
struct Data { struct Data {
uint a; uint a;
@ -19,6 +19,8 @@ contract B {
} }
} }
==== Source: B ==== ==== Source: B ====
pragma abicoder v1;
import "A"; import "A";
contract C is B { contract C is B {
@ -31,5 +33,5 @@ contract C is B {
// ---- // ----
// test() -> 77 // test() -> 77
// gas irOptimized: 133635 // gas irOptimized: 133635
// gas legacy: 156573 // gas legacy: 156449
// gas legacyOptimized: 112940 // gas legacyOptimized: 112943

View File

@ -1,5 +1,5 @@
==== Source: A ==== ==== Source: A ====
pragma abicoder v2; pragma abicoder v2;
struct Data { struct Data {
uint value; uint value;
@ -23,6 +23,8 @@ contract B {
} }
} }
==== Source: B ==== ==== Source: B ====
pragma abicoder v1;
import "A"; import "A";
contract C is B { contract C is B {
@ -39,4 +41,4 @@ contract C is B {
// ---- // ----
// test() -> 5, 10 // test() -> 5, 10
// gas irOptimized: 92624 // gas irOptimized: 92624
// gas legacy: 100441 // gas legacy: 100237