mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-27 07:40:59 +00:00
fix(tests): TxCache needs to respond to x in tx_cache
This commit is contained in:
parent
23a09fc047
commit
be6d01729d
@ -74,6 +74,13 @@ class TxCache:
|
|||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
return self.get_tx(key.hex())
|
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.command()
|
||||||
@click.argument("coin_name")
|
@click.argument("coin_name")
|
||||||
|
Loading…
Reference in New Issue
Block a user