fix: wrong service method signature
This commit is contained in:
parent
c0d87dd063
commit
a156a8be1e
|
@ -254,6 +254,7 @@ proc load*(self: AppController) =
|
||||||
self.communityService.init()
|
self.communityService.init()
|
||||||
self.bookmarkService.init()
|
self.bookmarkService.init()
|
||||||
self.tokenService.init()
|
self.tokenService.init()
|
||||||
|
self.settingsService.init()
|
||||||
self.dappPermissionsService.init()
|
self.dappPermissionsService.init()
|
||||||
self.walletAccountService.init()
|
self.walletAccountService.init()
|
||||||
self.transactionService.init()
|
self.transactionService.init()
|
||||||
|
|
|
@ -33,8 +33,6 @@ method load*(self: Module) =
|
||||||
self.view.load()
|
self.view.load()
|
||||||
self.view.dappsAddress = self.controller.getDappsAddress()
|
self.view.dappsAddress = self.controller.getDappsAddress()
|
||||||
self.view.networkId = self.controller.getCurrentNetworkDetails().config.networkId
|
self.view.networkId = self.controller.getCurrentNetworkDetails().config.networkId
|
||||||
self.moduleLoaded = true
|
|
||||||
self.delegate.providerDidLoad()
|
|
||||||
|
|
||||||
method isLoaded*(self: Module): bool =
|
method isLoaded*(self: Module): bool =
|
||||||
return self.moduleLoaded
|
return self.moduleLoaded
|
||||||
|
@ -44,3 +42,10 @@ method setDappsAddress*(self: Module, value: string) =
|
||||||
|
|
||||||
method onDappAddressChanged*(self: Module, value: string) =
|
method onDappAddressChanged*(self: Module, value: string) =
|
||||||
self.view.dappsAddress = value
|
self.view.dappsAddress = value
|
||||||
|
|
||||||
|
proc checkIfModuleDidLoad(self: Module) =
|
||||||
|
self.moduleLoaded = true
|
||||||
|
self.delegate.providerDidLoad()
|
||||||
|
|
||||||
|
method viewDidLoad*(self: Module) =
|
||||||
|
self.checkIfModuleDidLoad()
|
||||||
|
|
|
@ -64,13 +64,13 @@ method getIdentityImage*(self: Service, address: string): IdentityImage =
|
||||||
return identityImage
|
return identityImage
|
||||||
|
|
||||||
method getDappsAddress*(self: Service): string =
|
method getDappsAddress*(self: Service): string =
|
||||||
return status_go_settings.getSetting[string](Setting.DappsAddress)
|
return status_go_settings.getSetting[string](Setting.DappsAddress)
|
||||||
|
|
||||||
method setDappsAddress*(self: Service, address: string): bool =
|
method setDappsAddress*(self: Service, address: string): bool =
|
||||||
let r = status_go_settings.saveSetting(Setting.DappsAddress, address)
|
let r = status_go_settings.saveSetting(Setting.DappsAddress, address)
|
||||||
return r.error == ""
|
return r.error == ""
|
||||||
|
|
||||||
method getCurrentNetworkDetails*(self: ServiceInterface): NetworkDetails =
|
method getCurrentNetworkDetails*(self: Service): NetworkDetails =
|
||||||
let currNetwork = getSetting[string](Setting.Networks_CurrentNetwork, DEFAULT_NETWORK_NAME)
|
let currNetwork = getSetting[string](Setting.Networks_CurrentNetwork, DEFAULT_NETWORK_NAME)
|
||||||
let networks = getSetting[seq[NetworkDetails]](Setting.Networks_Networks)
|
let networks = getSetting[seq[NetworkDetails]](Setting.Networks_Networks)
|
||||||
for n in networks:
|
for n in networks:
|
||||||
|
|
Loading…
Reference in New Issue