Replace getWalletTokenBalances with fetchOrGetCachedWalletBalances (#13403)
This commit is contained in:
parent
92c58d9cbf
commit
3d1c98717a
|
@ -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:
|
||||||
|
|
|
@ -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"):
|
||||||
|
|
Loading…
Reference in New Issue