diff options
author | Florian Dold <florian@dold.me> | 2021-01-14 18:00:00 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-14 18:00:00 +0100 |
commit | 19eb72e277de89600506c2c7d1f14487ebe6408e (patch) | |
tree | 70b4d15291ad319abc302b09fc7cc4cd11361fb9 /packages/taler-wallet-core/src/operations/reserves.ts | |
parent | 6293de7bfa4d8a52091b251e2333e9710ce1b22a (diff) | |
download | wallet-core-19eb72e277de89600506c2c7d1f14487ebe6408e.tar.xz |
logging, cosmetic fixes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/reserves.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reserves.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/reserves.ts b/packages/taler-wallet-core/src/operations/reserves.ts index 7c878668f..2be992bf2 100644 --- a/packages/taler-wallet-core/src/operations/reserves.ts +++ b/packages/taler-wallet-core/src/operations/reserves.ts @@ -50,7 +50,7 @@ import { denomSelectionInfoToState, updateWithdrawalDenoms, selectWithdrawalDenominations, - getPossibleWithdrawalDenoms, + getCandidateWithdrawalDenoms, } from "./withdraw"; import { guardOperationException, @@ -135,7 +135,7 @@ export async function createReserve( const initialWithdrawalGroupId = encodeCrock(getRandomBytes(32)); await updateWithdrawalDenoms(ws, canonExchange); - const denoms = await getPossibleWithdrawalDenoms(ws, canonExchange); + const denoms = await getCandidateWithdrawalDenoms(ws, canonExchange); const denomSelInfo = selectWithdrawalDenominations(req.amount, denoms); const initialDenomSel = denomSelectionInfoToState(denomSelInfo); @@ -528,7 +528,7 @@ async function updateReserve( const currency = balance.currency; await updateWithdrawalDenoms(ws, reserve.exchangeBaseUrl); - const denoms = await getPossibleWithdrawalDenoms(ws, reserve.exchangeBaseUrl); + const denoms = await getCandidateWithdrawalDenoms(ws, reserve.exchangeBaseUrl); const newWithdrawalGroup = await ws.db.runWithWriteTransaction( [Stores.coins, Stores.planchets, Stores.withdrawalGroups, Stores.reserves], |