diff options
author | Florian Dold <florian@dold.me> | 2024-01-15 17:36:50 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-15 18:43:20 +0100 |
commit | 8da08fe4205c1e03eec3d4925c598be0b6769ba5 (patch) | |
tree | e81d59fa7a1ef40687fc16199e4d44dd70e02b5c /packages/taler-wallet-core/src/wallet.ts | |
parent | 68f3bcdc6cece62176849ab065e82630ebc4deae (diff) | |
download | wallet-core-8da08fe4205c1e03eec3d4925c598be0b6769ba5.tar.xz |
wallet-core: uniform transaction interface, cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 1fa1d117e..d6da2250a 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -151,7 +151,6 @@ import { CancelFn, InternalWalletState, MerchantInfo, - MerchantOperations, NotificationListener, RecoupOperations, RefreshOperations, @@ -246,7 +245,7 @@ import { import { acceptTip, computeRewardTransactionStatus, - prepareTip, + prepareReward, processTip, } from "./operations/reward.js"; import { @@ -1164,7 +1163,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } case WalletApiOperation.PrepareReward: { const req = codecForPrepareRewardRequest().decode(payload); - return await prepareTip(ws, req.talerRewardUri); + return await prepareReward(ws, req.talerRewardUri); } case WalletApiOperation.StartRefundQueryForUri: { const req = codecForPrepareRefundRequest().decode(payload); @@ -1609,9 +1608,6 @@ class InternalWalletStateImpl implements InternalWalletState { createRecoupGroup, }; - merchantOps: MerchantOperations = { - getMerchantInfo, - }; refreshOps: RefreshOperations = { createRefreshGroup, |