mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-21 21:00:58 +00:00
src/apps/common: fix cache
This commit is contained in:
parent
c937d73217
commit
df10f5df3f
@ -33,7 +33,7 @@ def get_seed():
|
|||||||
|
|
||||||
def set_seed(seed, passphrase):
|
def set_seed(seed, passphrase):
|
||||||
global _seed, _passphrase
|
global _seed, _passphrase
|
||||||
_seed, _passphrase = seed, _passphrase
|
_seed, _passphrase = seed, passphrase
|
||||||
|
|
||||||
|
|
||||||
def has_passphrase():
|
def has_passphrase():
|
||||||
|
@ -11,7 +11,7 @@ from apps.common import storage, coins, cache
|
|||||||
async def respond_Features(ctx, msg):
|
async def respond_Features(ctx, msg):
|
||||||
|
|
||||||
if msg.__qualname__ == 'Initialize':
|
if msg.__qualname__ == 'Initialize':
|
||||||
if msg.state is None or msg.state != cache.get_state(state=msg.state):
|
if msg.state is None or bytes(msg.state) != cache.get_state(state=bytes(msg.state)):
|
||||||
cache.clear()
|
cache.clear()
|
||||||
|
|
||||||
f = Features()
|
f = Features()
|
||||||
|
Loading…
Reference in New Issue
Block a user