diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index da9445602..b20791241 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -113,6 +113,7 @@ import { j2s, parsePayTemplateUri, parsePaytoUri, + sampleWalletCoreTransactions, validateIban, } from "@gnu-taler/taler-util"; import { @@ -1241,6 +1242,8 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( await setCoinSuspended(ws, req.coinPub, req.suspended); return {}; } + case WalletApiOperation.TestingGetSampleTransactions: + return { transactions: sampleWalletCoreTransactions }; case WalletApiOperation.ForceRefresh: { const req = codecForForceRefreshRequest().decode(payload); if (req.coinPubList.length == 0) { @@ -1507,7 +1510,6 @@ export function getVersion(ws: InternalWalletState): WalletCoreVersion { return version; } - /** * Handle a request to the wallet-core API. */ |