solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/407_invalid_address_no_checksum.sol

9 lines
456 B
Solidity

contract C {
function f() pure public {
address x = 0xfa0bfc97e48458494ccd857e1a85dc91f7f0046e;
x;
}
}
// ----
// SyntaxError 9429: (64-106): This looks like an address but has an invalid checksum. Correct checksummed address: "0xfA0bFc97E48458494Ccd857e1A85DC91F7F0046E". If this is not used as an address, please prepend '00'. For more information please see https://solidity.readthedocs.io/en/develop/types.html#address-literals