aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-20 04:23:53 +0100
committerFlorian Dold <florian@dold.me>2023-02-20 04:23:53 +0100
commitc022f394286e1b8c35123d92bd2d4a23c3f981f9 (patch)
treea90f544cd038198d1f1d8317c192c7ac9f11ed7e /packages
parent2626ed6ad00234fe44c8bd54c53c2275b6545f62 (diff)
downloadwallet-core-c022f394286e1b8c35123d92bd2d4a23c3f981f9.tar.gz
wallet-core-c022f394286e1b8c35123d92bd2d4a23c3f981f9.tar.bz2
wallet-core-c022f394286e1b8c35123d92bd2d4a23c3f981f9.zip
-fix pending operation
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/operations/pending.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet.ts4
2 files changed, 1 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts
index 554766c04..240c7ff65 100644
--- a/packages/taler-wallet-core/src/operations/pending.ts
+++ b/packages/taler-wallet-core/src/operations/pending.ts
@@ -442,7 +442,7 @@ async function gatherPeerPushCreditPending(
): Promise<void> {
await tx.peerPushPaymentIncoming.iter().forEachAsync(async (pi) => {
switch (pi.status) {
- case PeerPushPaymentIncomingStatus.Accepted:
+ case PeerPushPaymentIncomingStatus.Proposed:
return;
case PeerPushPaymentIncomingStatus.WithdrawalCreated:
return;
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 4f037eade..6f775142b 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1432,10 +1432,6 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
const req = codecForCheckPeerPushDebitRequest().decode(payload);
return await checkPeerPushDebit(ws, req);
}
- case WalletApiOperation.PreparePeerPushCredit: {
- const req = codecForPreparePeerPushCreditRequest().decode(payload);
- return await preparePeerPushCredit(ws, req);
- }
case WalletApiOperation.InitiatePeerPushDebit: {
const req = codecForInitiatePeerPushPaymentRequest().decode(payload);
return await initiatePeerPushPayment(ws, req);