mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -11,7 +11,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 6138: (65-85): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (153-171): Invalid type for argument in function call. Invalid implicit conversion from bytes4 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 8051: (240-247): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 6138: (65-85='address(this).call()'): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (153-171='bytes4(0x12345678)'): Invalid type for argument in function call. Invalid implicit conversion from bytes4 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 8051: (240-247='uint(1)'): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 8922: (297-333): Wrong argument count for function call: 2 arguments given but expected 1. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
|
||||
@@ -9,6 +9,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 6138: (65-89): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (161-168): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 6138: (65-89='address(this).callcode()'): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (161-168='uint(1)'): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 8922: (218-258): Wrong argument count for function call: 2 arguments given but expected 1. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
|
||||
@@ -9,6 +9,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 6138: (65-93): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (169-176): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 6138: (65-93='address(this).delegatecall()'): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use "" as argument to provide empty calldata.
|
||||
// TypeError 8051: (169-176='uint(1)'): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
// TypeError 8922: (226-270): Wrong argument count for function call: 2 arguments given but expected 1. This function requires a single bytes argument. If all your arguments are value types, you can use abi.encode(...) to properly generate it.
|
||||
|
||||
@@ -6,6 +6,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4323: (55-66): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (100-107): 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 4323: (132-159): Wrong argument count for function call: 2 arguments given but expected 1. 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 4323: (55-66='keccak256()'): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (100-107='uint(1)'): 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 4323: (132-159='keccak256(uint(1), uint(2))'): Wrong argument count for function call: 2 arguments given but expected 1. 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.
|
||||
|
||||
@@ -8,8 +8,8 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 7576: (38-42): Undeclared identifier.
|
||||
// DeclarationError 7576: (46-50): Undeclared identifier.
|
||||
// DeclarationError 7576: (54-58): Undeclared identifier.
|
||||
// DeclarationError 7576: (62-66): Undeclared identifier.
|
||||
// DeclarationError 7576: (70-74): Undeclared identifier.
|
||||
// DeclarationError 7576: (38-42='log0'): Undeclared identifier.
|
||||
// DeclarationError 7576: (46-50='log1'): Undeclared identifier.
|
||||
// DeclarationError 7576: (54-58='log2'): Undeclared identifier.
|
||||
// DeclarationError 7576: (62-66='log3'): Undeclared identifier.
|
||||
// DeclarationError 7576: (70-74='log4'): Undeclared identifier.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 7359: (38-41): "now" has been deprecated. Use "block.timestamp" instead.
|
||||
// TypeError 7359: (38-41='now'): "now" has been deprecated. Use "block.timestamp" instead.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2319: (43-51): This declaration shadows a builtin symbol.
|
||||
// Warning 2319: (43-51='uint now'): This declaration shadows a builtin symbol.
|
||||
|
||||
@@ -6,6 +6,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4323: (55-66): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (100-107): 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 4323: (132-159): Wrong argument count for function call: 2 arguments given but expected 1. 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 4323: (55-66='ripemd160()'): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (100-107='uint(1)'): 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 4323: (132-159='ripemd160(uint(1), uint(2))'): Wrong argument count for function call: 2 arguments given but expected 1. 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.
|
||||
|
||||
@@ -6,6 +6,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4323: (55-63): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (94-101): 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 4323: (126-150): Wrong argument count for function call: 2 arguments given but expected 1. 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 4323: (55-63='sha256()'): Wrong argument count for function call: 0 arguments given but expected 1. 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 7556: (94-101='uint(1)'): 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 4323: (126-150='sha256(uint(1), uint(2))'): Wrong argument count for function call: 2 arguments given but expected 1. 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.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 3557: (60-64): "sha3" has been deprecated in favour of "keccak256".
|
||||
// TypeError 3557: (60-64='sha3'): "sha3" has been deprecated in favour of "keccak256".
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2319: (58-67): This declaration shadows a builtin symbol.
|
||||
// Warning 2319: (58-67='bool sha3'): This declaration shadows a builtin symbol.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 8050: (60-67): "suicide" has been deprecated in favour of "selfdestruct".
|
||||
// TypeError 8050: (60-67='suicide'): "suicide" has been deprecated in favour of "selfdestruct".
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2319: (58-70): This declaration shadows a builtin symbol.
|
||||
// Warning 2319: (58-70='bool suicide'): This declaration shadows a builtin symbol.
|
||||
|
||||
Reference in New Issue
Block a user