File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
33from etherscan .tokens import Tokens
44
5- DGD_TOKEN_SUPPLY = '1994946756800000 '
6- DGD_TOKEN_BALANCE = '212900000000000'
5+ ELCOIN_TOKEN_SUPPLY = '21265524714464 '
6+ ELCOIN_TOKEN_BALANCE = "135499"
77AP_IKEY = 'YourAPIkey'
8- TOKEN_NAME = 'DGD '
9- ADDRESS = '0x4366ddc115d8cf213c564da36e64c8ebaa30cdbd '
8+ CONTRACT_ADDRESS = '0x57d90b64a1a57749b0f932f1a3395792e12e7055 '
9+ ADDRESS = '0xe04f27eb70e025b78871a2ad7eabe85e61212761 '
1010API_KEY = 'YourAPIkey'
1111
1212def test_get_token_supply ():
13- api = Tokens (tokenname = TOKEN_NAME , api_key = (API_KEY ))
14- assert (api .get_total_supply () == DGD_TOKEN_SUPPLY )
13+ api = Tokens (contract_address = CONTRACT_ADDRESS , api_key = (API_KEY ))
14+ assert (api .get_total_supply () == ELCOIN_TOKEN_SUPPLY )
1515
1616def test_get_token_balance ():
17- api = Tokens (tokenname = TOKEN_NAME , api_key = API_KEY )
18- assert (api .get_token_balance (ADDRESS ) == DGD_TOKEN_BALANCE )
17+ api = Tokens (contract_address = CONTRACT_ADDRESS , api_key = API_KEY )
18+ assert (api .get_token_balance (ADDRESS ) == ELCOIN_TOKEN_BALANCE )
You can’t perform that action at this time.
0 commit comments