Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_contracts returns is_erc20=false, even though the contract is ERC-20 #71

Open
0xAleksaOpacic opened this issue May 17, 2022 · 0 comments

Comments

@0xAleksaOpacic
Copy link

0xAleksaOpacic commented May 17, 2022

Description:
I have deployed ERC-20 contract on the Polygon testnet (Mumbai)

While testing different commands, i have noticed that calling:
polygonetl export_contracts --contract-addresses contract_addresses.txt --provider-uri http://matic-mumbai.chainstacklabs.com --output contracts.csv

returns all contracts, but is_erc20 and is_erc721 fields are always FALSE

Enviroment:
PolygonEtl version: polygonetl, version 0.1.8
Network: Polygon Mumbai testnet
JSON-RPC: http://matic-mumbai.chainstacklabs.com
Chain id: 80001
Transaction hash: 0xb2b0a3a0c07dbf7be8d52f0cb3990bf5ef0088121bf23854ef6f1b7f6c80eac7
Contract Address: 0xCc5dDbAECDB40993d779b68b0CE503219aE5A144
Contract file: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol

Steps to reproduce:

1. polygonetl export_blocks_and_transactions --start-block 26347319 --end-block 26347321 --provider-uri http://matic-mumbai.chainstacklabs.com --blocks-output blocks.csv --transactions-output transactions.csv
2. polygonetl extract_csv_column --input transactions.csv --column hash --output transaction_hashes.txt
3. polygonetl export_receipts_and_logs --transaction-hashes transaction_hashes.txt --provider-uri http://matic-mumbai.chainstacklabs.com --receipts-output receipts.csv --logs-output logs.csv
4. polygonetl extract_token_transfers --logs logs.csv --output token_transfers.csv
5. polygonetl extract_csv_column --input receipts.csv --column contract_address --output contract_addresses.txt
6. polygonetl export_contracts --contract-addresses contract_addresses.txt --provider-uri http://matic-mumbai.chainstacklabs.com --output contracts.csv

Check contracts.csv file and for contract (addr = 0xcc5ddbaecdb40993d779b68b0ce503219ae5a144) is_erc20 and is_erc721 fields are always FALSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant