From 3d1c98717ab04fc59d795aede075f78cbde737c9 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 7 Feb 2024 11:18:59 +0100 Subject: [PATCH] Replace getWalletTokenBalances with fetchOrGetCachedWalletBalances (#13403) --- src/app_service/service/wallet_account/async_tasks.nim | 2 +- src/backend/backend.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_service/service/wallet_account/async_tasks.nim b/src/app_service/service/wallet_account/async_tasks.nim index e2e64ac87b..d1c2ec6149 100644 --- a/src/app_service/service/wallet_account/async_tasks.nim +++ b/src/app_service/service/wallet_account/async_tasks.nim @@ -91,7 +91,7 @@ const prepareTokensTask: Task = proc(argEncoded: string) {.gcsafe, nimcall.} = "storeResult": false } try: - let response = backend.getWalletTokenBalances(arg.accounts) + let response = backend.fetchOrGetCachedWalletBalances(arg.accounts) output["result"] = response.result output["storeResult"] = %* arg.storeResult except Exception as e: diff --git a/src/backend/backend.nim b/src/backend/backend.nim index a014efe344..c5ce06a731 100644 --- a/src/backend/backend.nim +++ b/src/backend/backend.nim @@ -140,7 +140,7 @@ rpc(getTransfersForIdentities, "wallet"): rpc(getWalletToken, "wallet"): accounts: seq[string] -rpc(getWalletTokenBalances, "wallet"): +rpc(fetchOrGetCachedWalletBalances, "wallet"): accounts: seq[string] rpc(fetchMarketValues, "wallet"):