aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/408_invalid_address_length_short.sol
blob: da5dc3803ecd237d0abb55043c23c6d329457889 (plain) (tree)
1
2
3
4
5
6
7
8






                                                              
                                                                                                                                                                                                                                                                          
contract C {
    function f() pure public {
        address x = 0xA0bFc97E48458494Ccd857e1A85DC91F7F0046E;
        x;
    }
}
// ----
// SyntaxError: (64-105): This looks like an address but is not exactly 40 hex digits. It is 39 hex digits. 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