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:
parent
2d0d360944
commit
55de110ee9
@ -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!
|
||||
|
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user