fixup! Calldata validation tests

This commit is contained in:
wechman 2022-08-10 13:06:17 +02:00
parent d066dd2bc0
commit 123a410795
3 changed files with 7 additions and 7 deletions

View File

@ -13,13 +13,13 @@ contract C {
}
function f_which(uint[] calldata a, uint[2] calldata b, uint which) public returns (bytes memory) {
return abi.encode(a[which], b[1]);
return abi.encode(a[which], b[1]);
}
function f_storage(uint[] calldata a, uint[2] calldata b ) public returns (bytes memory) {
s = a;
n = b;
return abi.encode(s);
return abi.encode(s);
}
}

View File

@ -5,15 +5,15 @@ contract C {
uint[2] n;
function f_memory(uint[][] calldata a) public returns (uint[][] memory) {
return a;
return a;
}
function f_encode(uint[][] calldata a) public returns (bytes memory) {
return abi.encode(a);
return abi.encode(a);
}
function f_which(uint[][] calldata a, uint which) public returns (uint[] memory) {
return a[which];
return a[which];
}
}

View File

@ -5,11 +5,11 @@ contract C {
uint[2] bTmp;
function f_memory(uint[] calldata a) public returns (uint[] memory) {
return a;
return a;
}
function f_encode(uint[] calldata a) public returns (bytes memory) {
return abi.encode(a);
return abi.encode(a);
}
function f_storage(uint[] calldata a) public returns (bytes memory) {