ethereum-etl
ethereum-etl copied to clipboard
Contract 0x6b175474e89094c44da98b954eedeac495271d0f is not detected as ERC20
https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f
https://github.com/blockchain-etl/ethereum-etl/blob/e8b6fe742e19e06406eda39e41fa4d6158765c57/ethereumetl/service/eth_contract_service.py#L54
https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code
Line 91: mapping (address => mapping (address => uint)) public allowance;
Shows that this contract doesn't follow the eth_contract_service's is_erc20 rule. Line 91 uses allowance mapping while is_erc20 standard requires it to be a function.
AFAIK Solidity creates accessor methods for public fields automatically. There is a corresponding allowance(address, address) method as can be seen on Etherscan https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#readContract.