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,7 +1,8 @@
pragma abicoder v1;
contract C {
function f() public pure {
abi.decode("1234", (uint[][3]));
}
}
// ----
// TypeError 9611: (72-81): Decoding type uint256[] memory[3] memory not supported.
// TypeError 9611: (92-101): Decoding type uint256[] memory[3] memory not supported.
@@ -1,3 +1,4 @@
pragma abicoder v1;
struct S {
uint x;
}
@@ -8,4 +9,4 @@ contract C {
}
}
// ----
// TypeError 9611: (98-99): Decoding type struct S memory not supported.
// TypeError 9611: (118-119): Decoding type struct S memory not supported.