parent
5ff4b5a435
commit
be8c5d7534
|
@ -122,6 +122,9 @@ proc getNetworkForBrowser*(self: Service): NetworkDto =
|
|||
proc getNetworkForChat*(self: Service): NetworkDto =
|
||||
return self.getNetworkForStickers()
|
||||
|
||||
proc getNetworkForActivityCheck*(self: Service): NetworkDto =
|
||||
return self.getNetworkForStickers()
|
||||
|
||||
proc getNetworkForCollectibles*(self: Service): NetworkDto =
|
||||
if self.settingsService.areTestNetworksEnabled():
|
||||
return self.getNetwork(Goerli)
|
||||
|
|
|
@ -43,6 +43,7 @@ const fetchDerivedAddressesForMnemonicTask*: Task = proc(argEncoded: string) {.g
|
|||
type
|
||||
FetchDetailsForAddressesTaskArg* = ref object of QObjectTaskArg
|
||||
uniqueId: string
|
||||
chainId: int
|
||||
addresses: seq[string]
|
||||
|
||||
const fetchDetailsForAddressesTask*: Task = proc(argEncoded: string) {.gcsafe, nimcall.} =
|
||||
|
@ -54,7 +55,7 @@ const fetchDetailsForAddressesTask*: Task = proc(argEncoded: string) {.gcsafe, n
|
|||
"error": ""
|
||||
}
|
||||
try:
|
||||
let response = status_go_accounts.getAddressDetails(address)
|
||||
let response = status_go_accounts.getAddressDetails(arg.chainId, address)
|
||||
sleep(250)
|
||||
data["details"] = response.result
|
||||
except Exception as e:
|
||||
|
|
|
@ -575,8 +575,10 @@ QtObject:
|
|||
))
|
||||
|
||||
proc fetchDetailsForAddresses*(self: Service, uniqueId: string, addresses: seq[string]) =
|
||||
let network = self.networkService.getNetworkForActivityCheck()
|
||||
let arg = FetchDetailsForAddressesTaskArg(
|
||||
uniqueId: uniqueId,
|
||||
chainId: network.chainId,
|
||||
addresses: addresses,
|
||||
tptr: cast[ByteAddress](fetchDetailsForAddressesTask),
|
||||
vptr: cast[ByteAddress](self.vptr),
|
||||
|
|
|
@ -402,8 +402,8 @@ proc getDerivedAddressesForMnemonic*(mnemonic: string, paths: seq[string]): RpcR
|
|||
let payload = %* [mnemonic, paths]
|
||||
result = core.callPrivateRPC("wallet_getDerivedAddressesForMnemonic", payload)
|
||||
|
||||
proc getAddressDetails*(address: string,): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [address]
|
||||
proc getAddressDetails*(chainId: int, address: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [chainId, address]
|
||||
result = core.callPrivateRPC("wallet_getAddressDetails", payload)
|
||||
|
||||
proc verifyPassword*(password: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 62e3e9bd62a8634cfee9dc22f62811b944e4e43a
|
||||
Subproject commit 8b05ba6d8b44d441377ea896b0b95d004fc2583c
|
Loading…
Reference in New Issue