sbip-sg / solc-json-parser

A Powerful AST Parser for Solidity
12 stars 1 forks source link

NoneType in node.get(keys.children) #66

Closed minhhn2910 closed 1 year ago

minhhn2910 commented 1 year ago

smartian/B3/sol/0x2d4de3c744d43cf77cb12399921faf0d78b7415b.sol

  File "/solc-json-parser/solc_json_parser/parser.py", line 256, in __init__
    self.build()
  File "/solc-json-parser/solc_json_parser/parser.py", line 260, in build
    self.contracts_dict: Dict = self._parse()
  File "/solc-json-parser/solc_json_parser/parser.py", line 519, in _parse
    contract = self._process_contract(node)
  File "/solc-json-parser/solc_json_parser/parser.py", line 459, in _process_contract
    for node in node.get(keys.children):
TypeError: 'NoneType' object is not iterable
minhhn2910 commented 1 year ago

the cause : blank contract

contract ERC223ReceiverWithoutTokenFallback {
}