second-state/smart-contract-search-engine

Error harvesting Ethereum contracts with blank name in the output

tpmccallum opened this issue · 1 comments

This is an example of a blank name which is present in Maker contract ABI

{'constant': True, 'inputs': [], 'name': 'owner', 'outputs': [{'name': '', 'type': 'address'}], 'payable': False, 'stateMutability': 'view', 'type': 'function'}

Note the 'name': '' in the outputs list.

The above ABI entry causes the following error

web3.exceptions.BadFunctionCallOutput: Could not decode contract function call name return data b'' for output_types ['bytes32']

This is caused by incorrect Tx reference. This is now resolved.