remove random account from status model

This commit is contained in:
Iuri Matias 2020-05-21 16:19:54 -04:00
parent bab04fac6f
commit 27c1b4b9b0
2 changed files with 2 additions and 8 deletions

View File

@ -57,7 +57,8 @@ proc generateAddresses*(self: AccountModel): seq[GeneratedAccount] =
# TODO: this is temporary and will be removed once accounts import and creation is working
proc generateRandomAccountAndLogin*(self: AccountModel) =
discard status_accounts.setupRandomTestAccount()
let generatedAccounts = status_accounts.generateAddresses().parseJson
discard status_accounts.setupAccount(generatedAccounts[0], "qwerty")
self.events.emit("accountsReady", Args())
proc storeAccountAndLogin*(self: AccountModel, selectedAccountIndex: int, password: string): string =

View File

@ -132,10 +132,3 @@ proc setupAccount*(account: JsonNode, password: string): string =
var settingsJSON = getAccountSettings(account, alias, identicon, multiAccounts, constants.DEFAULT_NETWORKS)
$saveAccountAndLogin(multiAccounts, alias, identicon, $accountData, password, $constants.NODE_CONFIG, $settingsJSON)
proc setupRandomTestAccount*(): string =
let generatedAddresses = generateAddresses().parseJson
let account = generatedAddresses[0]
let password = "qwerty"
setupAccount(account, password)