Explicitly set coder to v1 for syntax tests.

This commit is contained in:
chriseth
2020-12-09 15:25:15 +01:00
parent a5bd22795e
commit 72f1e4ea0b
45 changed files with 88 additions and 38 deletions
@@ -1,3 +1,4 @@
pragma abicoder v1;
contract C {
struct Y {
uint b;
@@ -8,4 +9,4 @@ contract C {
mapping(uint256 => X) public m;
}
// ----
// TypeError 2763: (88-118): The following types are only supported for getters in ABI coder v2: struct C.Y memory. Either remove "public" or use "pragma abicoder v2;" to enable the feature.
// TypeError 2763: (108-138): The following types are only supported for getters in ABI coder v2: struct C.Y memory. Either remove "public" or use "pragma abicoder v2;" to enable the feature.