fixup! Test cases

This commit is contained in:
Kamil Śliwak 2022-08-09 12:00:24 +02:00
parent 6fe8ff2acf
commit b815483fc3
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ contract C {
abi.encodePacked(2 uintUintSuffix);
abi.encodeWithSelector(0x12345678, 3 uintUintSuffix);
abi.encodeWithSignature("f()", 4 uintUintSuffix);
//abi.encodeCall(this.g, 5 uintUintSuffix); // TODO: Causes an ICE
abi.encodeCall(this.g, 5 uintUintSuffix);
}
}
// ----
@ -16,3 +16,4 @@ contract C {
// TypeError 2056: (218-234): This type cannot be encoded.
// TypeError 2056: (280-296): This type cannot be encoded.
// TypeError 2056: (338-354): This type cannot be encoded.
// TypeError 9062: (388-404): Expected an inline tuple, not an expression of a tuple type.

View File

@ -11,7 +11,7 @@ contract C {
abi.encodePacked(2 nullSuffix);
abi.encodeWithSelector(0x12345678, 3 nullSuffix);
abi.encodeWithSignature("f()", 4 nullSuffix);
//abi.encodeCall(this.g, 5 nullSuffix); // TODO: Causes an ICE
abi.encodeCall(this.g, 5 nullSuffix);
}
}
// ----
@ -19,3 +19,4 @@ contract C {
// TypeError 2056: (225-237): This type cannot be encoded.
// TypeError 2056: (283-295): This type cannot be encoded.
// TypeError 2056: (337-349): This type cannot be encoded.
// TypeError 9062: (383-395): Expected an inline tuple, not an expression of a tuple type.