Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Comment (404-faucet-request-neon-in-galans)
  • Loading branch information
vakond committed Dec 4, 2021
commit bdeda042824ca7e631be7e8d1e164b2e12427454
2 changes: 2 additions & 0 deletions proxy/testing/test_neon_faucet.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def test_neon_faucet_03_erc20_tokens(self):
self.assertEqual(a_after - a_before, 1000000000000000000)
self.assertEqual(b_after - b_before, 1000000000000000000)

# Returns balance of a token account.
# Note: the result is in 10E-18 fractions.
def get_token_balance(self, token_address, address):
erc20 = proxy.eth.contract(address=token_address, abi=self.contract['abi'])
return erc20.functions.balanceOf(address).call()
Expand Down