diff options
author | Ting-Wei Lan <tingwei.lan@cobinhood.com> | 2019-02-20 16:32:14 +0800 |
---|---|---|
committer | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-03-26 17:48:22 +0800 |
commit | 6afab9caa86b9c4717b2c1dcebfa50df85e8b842 (patch) | |
tree | d20ee941cefbe01046b86a2f840c11710be87608 /test | |
parent | ddcbfd3c3bee5526a87fd569f93e10a9d5052fa9 (diff) | |
download | dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar.gz dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar.bz2 dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar.lz dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar.xz dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.tar.zst dexon-6afab9caa86b9c4717b2c1dcebfa50df85e8b842.zip |
core: vm: sqlvm: check if a number is a valid address
This commit implements isAddress function to allow a number literal to
be considered as an address literal. Since Solidity only allows '0x' to
be written in lower case, we remove the handling of upper case '0X' to
keep the behavior in sync with Solidity.
In addition to isAddress implementation, this commit also removes
'String' methods from AST nodes to prevent them from implementing the
builtin 'Stringer' interface. Therefore, our AST printer is now able to
print struct fields of value nodes instead of only one string.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions