Skip to content

Commit

Permalink
Merge pull request #397 from Foundation-Devices/SFT-2237-accounts-wit…
Browse files Browse the repository at this point in the history
…h-passphrases-fix-limit

SFT-2237: fixed default account renaming
  • Loading branch information
mjg-foundation authored Oct 3, 2023
2 parents 677e3e7 + cb08b3c commit e9eb5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ports/stm32/boards/Passport/modules/flows/main_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def start(self):
del next_addrs[key]
common.settings.set('next_addrs', next_addrs)

# Update account settings to include a show_all xfp
# Update account settings to include the default xfp
accounts = get_accounts()
for i in range(len(accounts)):
account = accounts[i]
Expand Down
5 changes: 1 addition & 4 deletions ports/stm32/boards/Passport/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,10 +869,7 @@ def folder_exists(path):

def get_accounts():
from common import settings
from constants import DEFAULT_ACCOUNT_ENTRY
default = DEFAULT_ACCOUNT_ENTRY
default['xfp'] = settings.get('root_xfp')
accounts = settings.get('accounts', [default])
accounts = settings.get('accounts', [])
accounts.sort(key=lambda a: a.get('acct_num', 0))
return accounts

Expand Down

0 comments on commit e9eb5e5

Please sign in to comment.