Use quote function for all errors/warnings

This commit is contained in:
Mathias Baumann
2020-01-08 16:12:06 +01:00
parent 70a2902714
commit 593e2515e7
494 changed files with 1201 additions and 1157 deletions
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// ParserError: (121-129): Expected ',' but got 'calldata'
// ParserError: (121-129): Expected "," but got "calldata"
@@ -4,5 +4,5 @@ contract C {
}
}
// ----
// TypeError: (57-61): The first argument to "abi.decode" must be implicitly convertible to bytes memory or bytes calldata, but is of type type(uint256).
// TypeError: (57-61): The first argument to "abi.decode" must be implicitly convertible to "bytes memory" or "bytes calldata", but is of type "type(uint256)".
// TypeError: (63-67): The second argument to "abi.decode" has to be a tuple of types.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// ParserError: (71-77): Expected ',' but got 'memory'
// ParserError: (71-77): Expected "," but got "memory"
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// ParserError: (109-116): Expected ',' but got 'storage'
// ParserError: (109-116): Expected "," but got "storage"
@@ -7,6 +7,6 @@ contract C {
function g(bytes32) pure internal {}
}
// ----
// TypeError: (64-71): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding.
// TypeError: (92-99): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding.
// TypeError: (123-130): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding.
// TypeError: (64-71): Invalid type for argument in function call. Invalid implicit conversion from "uint256" to "bytes memory" requested. This function requires a single "bytes" argument. Use "abi.encodePacked(...)" to obtain the pre-0.5.0 behaviour or "abi.encode(...)" to use ABI encoding.
// TypeError: (92-99): Invalid type for argument in function call. Invalid implicit conversion from "uint256" to "bytes memory" requested. This function requires a single "bytes" argument. Use "abi.encodePacked(...)" to obtain the pre-0.5.0 behaviour or "abi.encode(...)" to use ABI encoding.
// TypeError: (123-130): Invalid type for argument in function call. Invalid implicit conversion from "uint256" to "bytes memory" requested. This function requires a single "bytes" argument. Use "abi.encodePacked(...)" to obtain the pre-0.5.0 behaviour or "abi.encode(...)" to use ABI encoding.