Skip to content

Commit 60e7e4a

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

7 files changed

+0
-12
lines changed

test/libsolidity/semanticTests/abiEncoderV2/calldata_dynamic_array_to_memory.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ contract C {
1414
}
1515
}
1616

17-
// ====
18-
// compileViaYul: also
1917
// ----
2018
// f(uint256[][]): 0x20, 2, 0x40, 0xa0, 2, 5, 6, 2, 7, 8 -> 0x20, 2, 0x40, 0xa0, 2, 5, 6, 2, 7, 8
2119
// f(uint256[][]): 0x20, 2, 0x40, 0xa0, 2, 5, 6, 2, 7, 8, 9 -> 0x20, 2, 0x40, 0xa0, 2, 5, 6, 2, 7, 8

test/libsolidity/semanticTests/abiEncoderV2/calldata_nested_array_reencode.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ contract C {
1919
}
2020
// ====
2121
// revertStrings: debug
22-
// compileViaYul: also
2322
// ----
2423
// f(uint256[][]): 0x20, 1, 0x20, 0 -> 0x20, 0x80, 0x20, 1, 0x20, 0
2524
// f(uint256[][]): 0x20, 1, 0x20, 1 -> FAILURE, hex"08c379a0", 0x20, 0x1e, "Invalid calldata access stride"

test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_dynamic_arrays.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ contract C {
2323
}
2424
}
2525

26-
// ====
27-
// compileViaYul: also
2826
// ----
2927
// f_memory(uint256[],uint256[2]): 0x20, 1, 2 -> 0x60, 0x01, 0x02, 1, 2
3028
// f_memory(uint256[],uint256[2]): 0x40, 1, 2, 5, 6 -> 0x60, 1, 2, 2, 5, 6

test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_nested_dynamic_arrays.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ contract C {
1717
}
1818
}
1919

20-
// ====
21-
// compileViaYul: also
2220
// ----
2321
// f_memory(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 1, 2 -> 0x20, 2, 0x40, 0xa0, 2, 1, 2, 2, 1, 2
2422
// f_memory(uint256[][]): 0x20, 2, 0x40, 0x60, 2, 1, 2 -> 0x20, 2, 0x40, 0xa0, 2, 1, 2, 1, 2

test/libsolidity/semanticTests/abiEncoderV2/calldata_struct_array_reencode.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ contract C {
3434

3535
}
3636

37-
// ====
38-
// compileViaYul: also
3937
// ----
4038
// f((uint256[])): 0x20, 0x20, 0 -> 0x20, 0x60, 0x20, 0x20, 0
4139
// f((uint256[])): 0x20, 0x20, 1 -> FAILURE

test/libsolidity/semanticTests/abiEncoderV2/calldata_three_dimensional_dynamic_array_index_access.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ contract C {
2525
}
2626

2727
// ====
28-
// compileViaYul: also
2928
// revertStrings: debug
3029
// ----
3130
// f(uint256[][],uint256,uint256): 0x60, 0, 0, 2, 0x40, 0x80, 1, 7, 1, 8 -> 0x20, 0x20, 7

test/libsolidity/semanticTests/abiEncoderV2/calldata_with_garbage.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ contract C {
4040
}
4141
}
4242

43-
// ====
44-
// compileViaYul: also
4543
// ----
4644
// f_memory(uint256[]): 0x80, 9, 9, 9, 0 -> 0x20, 0
4745
// f_memory(uint256[]): 0x80, 9, 9, 9, 1, 7 -> 0x20, 1, 7

0 commit comments

Comments
 (0)