Ensure that public callable parameters are valid for calldata.

This commit is contained in:
Daniel Kirchner
2020-04-16 17:23:20 +02:00
parent 6093982606
commit f6d1cee06b
5 changed files with 19 additions and 1 deletions
@@ -2,8 +2,10 @@ contract C {
function f(bytes32[1263941234127518272][500] memory) public pure {}
function f(uint[2**30][] memory) public pure {}
function f(uint[2**30][2**30][] memory) public pure {}
function f(uint[2**16][2**16][] memory) public pure {}
}
// ----
// TypeError: (26-66): Type too large for memory.
// TypeError: (96-116): Type too large for memory.
// TypeError: (146-173): Type too large for memory.
// TypeError: (203-230): Type too large for calldata.