Replace getWalletTokenBalances with fetchOrGetCachedWalletBalances (#13403)

This commit is contained in:
Roman Volosovskyi 2024-02-07 11:18:59 +01:00 committed by GitHub
parent 92c58d9cbf
commit 3d1c98717a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ const prepareTokensTask: Task = proc(argEncoded: string) {.gcsafe, nimcall.} =
"storeResult": false "storeResult": false
} }
try: try:
let response = backend.getWalletTokenBalances(arg.accounts) let response = backend.fetchOrGetCachedWalletBalances(arg.accounts)
output["result"] = response.result output["result"] = response.result
output["storeResult"] = %* arg.storeResult output["storeResult"] = %* arg.storeResult
except Exception as e: except Exception as e:

View File

@ -140,7 +140,7 @@ rpc(getTransfersForIdentities, "wallet"):
rpc(getWalletToken, "wallet"): rpc(getWalletToken, "wallet"):
accounts: seq[string] accounts: seq[string]
rpc(getWalletTokenBalances, "wallet"): rpc(fetchOrGetCachedWalletBalances, "wallet"):
accounts: seq[string] accounts: seq[string]
rpc(fetchMarketValues, "wallet"): rpc(fetchMarketValues, "wallet"):