mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 02:21:17 +00:00
parent
49866d631b
commit
09cd02c0f1
@ -43,7 +43,6 @@ proc fetchDerivedAddressesForMnemonicTask*(argEncoded: string) {.gcsafe, nimcall
|
||||
type
|
||||
FetchDetailsForAddressesTaskArg* = ref object of QObjectTaskArg
|
||||
uniqueId: string
|
||||
chainId: int
|
||||
addresses: seq[string]
|
||||
|
||||
proc fetchDetailsForAddressesTask*(argEncoded: string) {.gcsafe, nimcall.} =
|
||||
@ -65,7 +64,7 @@ proc fetchDetailsForAddressesTask*(argEncoded: string) {.gcsafe, nimcall.} =
|
||||
if response.result.getBool:
|
||||
jsonReponse["alreadyCreated"] = %*true
|
||||
else:
|
||||
response = status_go_accounts.getAddressDetails(arg.chainId, address)
|
||||
response = status_go_accounts.getAddressDetails(address, chainIds = @[], timeoutInMilliseconds = 3000)
|
||||
jsonReponse = response.result
|
||||
sleep(250)
|
||||
data["details"] = jsonReponse
|
||||
|
@ -718,7 +718,6 @@ proc fetchDetailsForAddresses*(self: Service, uniqueId: string, addresses: seq[s
|
||||
let network = self.networkService.getAppNetwork()
|
||||
let arg = FetchDetailsForAddressesTaskArg(
|
||||
uniqueId: uniqueId,
|
||||
chainId: network.chainId,
|
||||
addresses: addresses,
|
||||
tptr: fetchDetailsForAddressesTask,
|
||||
vptr: cast[ByteAddress](self.vptr),
|
||||
|
@ -379,6 +379,14 @@ proc getAddressDetails*(chainId: int, address: string): RpcResponse[JsonNode] =
|
||||
let payload = %* [chainId, address]
|
||||
result = core.callPrivateRPC("wallet_getAddressDetails", payload)
|
||||
|
||||
proc getAddressDetails*(address: string, chainIds: seq[uint64] = @[], timeoutInMilliseconds: int): RpcResponse[JsonNode] =
|
||||
let payload = %* [{
|
||||
"address": address,
|
||||
"chainIds": chainIds,
|
||||
"timeoutInMilliseconds": timeoutInMilliseconds,
|
||||
}]
|
||||
result = core.callPrivateRPC("wallet_addressDetails", payload)
|
||||
|
||||
proc addressExists*(address: string): RpcResponse[JsonNode] =
|
||||
let payload = %* [address]
|
||||
result = core.callPrivateRPC("wallet_addressExists", payload)
|
||||
|
2
vendor/status-go
vendored
2
vendor/status-go
vendored
@ -1 +1 @@
|
||||
Subproject commit 2c430568b108b5080852dd60e669b92ac5631865
|
||||
Subproject commit 1418d40a6360b41f25edb4d9fb729bb048949f30
|
Loading…
x
Reference in New Issue
Block a user