mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-13 05:54:55 +00:00
feat: Add toggle network (#49)
This commit is contained in:
parent
c07e04e976
commit
fe7e74459e
@ -220,3 +220,7 @@ proc onAsyncFetchCryptoServices*(self: StatusWalletController, response: string)
|
||||
return
|
||||
|
||||
self.events.emit("wallet2_cryptoServicesFetched", CryptoServicesArg(services: responseArray))
|
||||
|
||||
proc toggleNetwork*(self: StatusWalletController, network: Network) =
|
||||
network.enabled = not network.enabled
|
||||
status_network.upsertNetwork(network)
|
Loading…
x
Reference in New Issue
Block a user