aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-02-20 16:32:14 +0800
committerlantw44 <lantw44@gmail.com>2019-02-25 16:14:12 +0800
commit53ccf03c56a7723f8b1681c6b43272213ee8dbd5 (patch)
tree7f2f0d389b4ea5be06605f121f148ae1438fa53a /p2p
parentaf1717798fec08e287582375f5145a099229bdcd (diff)
downloaddexon-53ccf03c56a7723f8b1681c6b43272213ee8dbd5.tar.gz
dexon-53ccf03c56a7723f8b1681c6b43272213ee8dbd5.tar.zst
dexon-53ccf03c56a7723f8b1681c6b43272213ee8dbd5.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 'p2p')
0 files changed, 0 insertions, 0 deletions