aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/pay-peer-push-debit.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-08-05 10:41:53 -0300
committerSebastian <sebasjm@gmail.com>2024-08-05 10:42:07 -0300
commit50d183195c94d0995aafd60f0fa3766f5f5ba256 (patch)
tree60f81a3e79c578fbeaa8637a69ee6aa1e2d743c9 /packages/taler-wallet-core/src/pay-peer-push-debit.ts
parentd65ff9a6c3c7478838ef1421dd32363495e99cba (diff)
downloadwallet-core-50d183195c94d0995aafd60f0fa3766f5f5ba256.tar.xz
scope info in tx details
Diffstat (limited to 'packages/taler-wallet-core/src/pay-peer-push-debit.ts')
-rw-r--r--packages/taler-wallet-core/src/pay-peer-push-debit.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/pay-peer-push-debit.ts
index b30ff334d..4485976b9 100644
--- a/packages/taler-wallet-core/src/pay-peer-push-debit.ts
+++ b/packages/taler-wallet-core/src/pay-peer-push-debit.ts
@@ -93,6 +93,7 @@ import {
notifyTransition,
} from "./transactions.js";
import { WalletExecutionContext } from "./wallet.js";
+import { getScopeForAllExchanges } from "./exchanges.js";
const logger = new Logger("pay-peer-push-debit.ts");
@@ -167,6 +168,7 @@ export class PeerPushDebitTransactionContext implements TransactionContext {
return {
type: TransactionType.PeerPushDebit,
txState,
+ scopes: await getScopeForAllExchanges(tx, [pushDebitRec.exchangeBaseUrl]),
txActions: computePeerPushDebitTransactionActions(pushDebitRec),
amountEffective: isUnsuccessfulTransaction(txState)
? Amounts.stringify(Amounts.zeroOfAmount(pushDebitRec.totalCost))