fix(@wallet): Add account not working
This commit is contained in:
parent
d81b6ca518
commit
eb357ff6e2
|
@ -109,21 +109,21 @@ StatusModal {
|
||||||
switch(advancedSelection.expandableItem.addAccountType) {
|
switch(advancedSelection.expandableItem.addAccountType) {
|
||||||
case SelectGeneratedAccount.AddAccountType.GenerateNew:
|
case SelectGeneratedAccount.AddAccountType.GenerateNew:
|
||||||
errMessage = RootStore.generateNewAccount(passwordInput.text, accountNameInput.text, colorSelectionGrid.selectedColor,
|
errMessage = RootStore.generateNewAccount(passwordInput.text, accountNameInput.text, colorSelectionGrid.selectedColor,
|
||||||
accountNameInput.input.icon.emoji, advancedSelection.expandableItem.completePath,
|
accountNameInput.input.asset.emoji, advancedSelection.expandableItem.completePath,
|
||||||
advancedSelection.expandableItem.derivedFromAddress)
|
advancedSelection.expandableItem.derivedFromAddress)
|
||||||
break
|
break
|
||||||
case SelectGeneratedAccount.AddAccountType.ImportSeedPhrase:
|
case SelectGeneratedAccount.AddAccountType.ImportSeedPhrase:
|
||||||
errMessage = RootStore.addAccountsFromSeed(advancedSelection.expandableItem.mnemonicText, passwordInput.text,
|
errMessage = RootStore.addAccountsFromSeed(advancedSelection.expandableItem.mnemonicText, passwordInput.text,
|
||||||
accountNameInput.text, colorSelectionGrid.selectedColor, accountNameInput.input.icon.emoji,
|
accountNameInput.text, colorSelectionGrid.selectedColor, accountNameInput.input.asset.emoji,
|
||||||
advancedSelection.expandableItem.completePath)
|
advancedSelection.expandableItem.completePath)
|
||||||
break
|
break
|
||||||
case SelectGeneratedAccount.AddAccountType.ImportPrivateKey:
|
case SelectGeneratedAccount.AddAccountType.ImportPrivateKey:
|
||||||
errMessage = RootStore.addAccountsFromPrivateKey(advancedSelection.expandableItem.privateKey, passwordInput.text,
|
errMessage = RootStore.addAccountsFromPrivateKey(advancedSelection.expandableItem.privateKey, passwordInput.text,
|
||||||
accountNameInput.text, colorSelectionGrid.selectedColor, accountNameInput.input.icon.emoji)
|
accountNameInput.text, colorSelectionGrid.selectedColor, accountNameInput.input.asset.emoji)
|
||||||
break
|
break
|
||||||
case SelectGeneratedAccount.AddAccountType.WatchOnly:
|
case SelectGeneratedAccount.AddAccountType.WatchOnly:
|
||||||
errMessage = RootStore.addWatchOnlyAccount(advancedSelection.expandableItem.watchAddress, accountNameInput.text,
|
errMessage = RootStore.addWatchOnlyAccount(advancedSelection.expandableItem.watchAddress, accountNameInput.text,
|
||||||
colorSelectionGrid.selectedColor, accountNameInput.input.icon.emoji)
|
colorSelectionGrid.selectedColor, accountNameInput.input.asset.emoji)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue