src/apps/common: fix cache

This commit is contained in:
Pavol Rusnak 2018-03-01 03:06:33 +01:00
parent c937d73217
commit df10f5df3f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -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():

View File

@ -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()