fix(@desktop/wallet): emit wallet2 event
fixes #3659 Wallet2 needs its own event otherwise they wallet1/2 mixes and as not everything is implemented in wallet2, it crashes In this particular case, the account is added into wallet1 but trigger an event intercepted by wallet2, wallet2 doesn't have the new account and crash
This commit is contained in:
parent
3e8313d176
commit
3660bad243
|
@ -40,15 +40,15 @@ proc init*(self: WalletController) =
|
|||
for account in accounts:
|
||||
self.view.addAccountToList(account)
|
||||
|
||||
self.status.events.on("accountsUpdated") do(e: Args):
|
||||
self.status.events.on("wallet2_accountsUpdated") do(e: Args):
|
||||
self.view.updateView()
|
||||
|
||||
self.status.events.on("newAccountAdded") do(e: Args):
|
||||
self.status.events.on("wallet2_newAccountAdded") do(e: Args):
|
||||
var account = WalletTypes.AccountArgs(e)
|
||||
self.view.addAccountToList(account.account)
|
||||
self.view.updateView()
|
||||
|
||||
self.status.events.on("cryptoServicesFetched") do(e: Args):
|
||||
self.status.events.on("wallet2_cryptoServicesFetched") do(e: Args):
|
||||
var args = CryptoServicesArg(e)
|
||||
self.view.onCryptoServicesFetched(args.services)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit cdb06facdd751d1dc69f57f7271ff2796228975f
|
||||
Subproject commit fbda20256f15b871f389b50d246f73317c8b5799
|
Loading…
Reference in New Issue