1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

eth: unknown token changed to (None, None..)

This commit is contained in:
Tomas Susanka 2018-05-10 14:50:56 +02:00
parent 2d0d360944
commit 55de110ee9
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ def token_by_chain_address(chain_id, address):
return UNKNOWN_TOKEN
UNKNOWN_TOKEN = True
UNKNOWN_TOKEN = (None, None, None, None)
# rest of the file is generated using trezor-common/ethereum_tokens-gen.py
# DO NOT EDIT MANUALLY!

View File

@ -22,7 +22,7 @@ class TestEthereumTokens(unittest.TestCase):
# invalid adress, invalid chain
token = tokens.token_by_chain_address(999, b'\x00\xFF')
self.assertEqual(token, tokens.UNKNOWN_TOKEN)
self.assertIs(token, tokens.UNKNOWN_TOKEN)
if __name__ == '__main__':