diff --git a/src/app_service/service/wallet_account/async_tasks.nim b/src/app_service/service/wallet_account/async_tasks.nim index f90bd46884..ceb191523d 100644 --- a/src/app_service/service/wallet_account/async_tasks.nim +++ b/src/app_service/service/wallet_account/async_tasks.nim @@ -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 diff --git a/src/app_service/service/wallet_account/service_account.nim b/src/app_service/service/wallet_account/service_account.nim index 25d9706d79..b9aedaba85 100644 --- a/src/app_service/service/wallet_account/service_account.nim +++ b/src/app_service/service/wallet_account/service_account.nim @@ -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), diff --git a/src/backend/accounts.nim b/src/backend/accounts.nim index e693af6b99..56ef80310c 100644 --- a/src/backend/accounts.nim +++ b/src/backend/accounts.nim @@ -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) diff --git a/vendor/status-go b/vendor/status-go index 2c430568b1..1418d40a63 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit 2c430568b108b5080852dd60e669b92ac5631865 +Subproject commit 1418d40a6360b41f25edb4d9fb729bb048949f30