Allow arrays of contract types as type expressions e.g. for abi.decode.

This commit is contained in:
Daniel Kirchner
2020-10-16 19:40:41 +02:00
parent eedd12ad1d
commit 909ce9164a
7 changed files with 18 additions and 11 deletions
@@ -0,0 +1,5 @@
contract C {
function f(bytes calldata x) public pure returns (C[] memory c) {
c = abi.decode(x, (C[]));
}
}