Skip to content

Commit 123a410

Browse files
committed
fixup! Calldata validation tests
1 parent d066dd2 commit 123a410

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_dynamic_arrays.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ contract C {
1313
}
1414

1515
function f_which(uint[] calldata a, uint[2] calldata b, uint which) public returns (bytes memory) {
16-
return abi.encode(a[which], b[1]);
16+
return abi.encode(a[which], b[1]);
1717
}
1818

1919
function f_storage(uint[] calldata a, uint[2] calldata b ) public returns (bytes memory) {
2020
s = a;
2121
n = b;
22-
return abi.encode(s);
22+
return abi.encode(s);
2323
}
2424
}
2525

test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_nested_dynamic_arrays.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ contract C {
55
uint[2] n;
66

77
function f_memory(uint[][] calldata a) public returns (uint[][] memory) {
8-
return a;
8+
return a;
99
}
1010

1111
function f_encode(uint[][] calldata a) public returns (bytes memory) {
12-
return abi.encode(a);
12+
return abi.encode(a);
1313
}
1414

1515
function f_which(uint[][] calldata a, uint which) public returns (uint[] memory) {
16-
return a[which];
16+
return a[which];
1717
}
1818
}
1919

test/libsolidity/semanticTests/abiEncoderV2/calldata_with_garbage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ contract C {
55
uint[2] bTmp;
66

77
function f_memory(uint[] calldata a) public returns (uint[] memory) {
8-
return a;
8+
return a;
99
}
1010

1111
function f_encode(uint[] calldata a) public returns (bytes memory) {
12-
return abi.encode(a);
12+
return abi.encode(a);
1313
}
1414

1515
function f_storage(uint[] calldata a) public returns (bytes memory) {

0 commit comments

Comments
 (0)