aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-02-20 16:32:14 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-04-11 10:39:58 +0800
commitfb0aeb4e3aca16d6e5c14566e817b21c75e68e25 (patch)
tree580f8a6509307fa582d48808baf0895633ac64c1 /build
parent24b21664fa2c7a960ad10ebe1f62030a560b9e7b (diff)
downloaddexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar.gz
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar.bz2
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar.lz
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar.xz
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.tar.zst
dexon-fb0aeb4e3aca16d6e5c14566e817b21c75e68e25.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 'build')
0 files changed, 0 insertions, 0 deletions