mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +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):
|
||||
global _seed, _passphrase
|
||||
_seed, _passphrase = seed, _passphrase
|
||||
_seed, _passphrase = seed, passphrase
|
||||
|
||||
|
||||
def has_passphrase():
|
||||
|
@ -11,7 +11,7 @@ from apps.common import storage, coins, cache
|
||||
async def respond_Features(ctx, msg):
|
||||
|
||||
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()
|
||||
|
||||
f = Features()
|
||||
|
Loading…
Reference in New Issue
Block a user