diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 7a6e033..fd840a0 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -69,8 +69,8 @@ def _cache_account_function(fn): key = (args, frozenset(kwargs.items())) mod_hash = hash(_account_keystore_path + str(os.path.getmtime(_account_keystore_path))) if last_mod_hash is None or mod_hash != last_mod_hash or key not in cache.keys(): - last_mod_hash = mod_hash cache[key] = fn(*args, **kwargs) + last_mod_hash = hash(_account_keystore_path + str(os.path.getmtime(_account_keystore_path))) return cache[key] return wrap