1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-27 15:51:02 +00:00

fix(tests): TxCache needs to respond to x in tx_cache

This commit is contained in:
matejcik 2021-02-05 11:59:18 +01:00 committed by matejcik
parent 23a09fc047
commit be6d01729d

View File

@ -74,6 +74,13 @@ class TxCache:
def __getitem__(self, key):
return self.get_tx(key.hex())
def __contains__(self, key):
try:
self.get_tx(key.hex())
return True
except Exception:
return False
@click.command()
@click.argument("coin_name")