ethereum-etl icon indicating copy to clipboard operation
ethereum-etl copied to clipboard

Contract 0x6b175474e89094c44da98b954eedeac495271d0f is not detected as ERC20

Open medvedev1088 opened this issue 4 years ago • 2 comments

https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f

medvedev1088 avatar Feb 03 '20 10:02 medvedev1088

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.

jensenity avatar Feb 04 '20 03:02 jensenity

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.

medvedev1088 avatar Feb 04 '20 06:02 medvedev1088