remove random account from status model
This commit is contained in:
parent
bab04fac6f
commit
27c1b4b9b0
|
@ -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 =
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue