summaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-06-04 19:41:43 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-06-04 19:41:43 +0200
commit2b1e88737f6496fb0ad8790b501edaa1d556d83d (patch)
tree51aa2c3cf06d80870d69551fc0f6c1b417c118dd /src/wallet.ts
parent55a1b25ea2312f2e0bd476513015b952ace914dd (diff)
downloadwallet-core-2b1e88737f6496fb0ad8790b501edaa1d556d83d.tar.gz
wallet-core-2b1e88737f6496fb0ad8790b501edaa1d556d83d.tar.bz2
wallet-core-2b1e88737f6496fb0ad8790b501edaa1d556d83d.zip
v0.2.7
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 80ba533c0..b0029e755 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -327,7 +327,7 @@ const builtinCurrencies: CurrencyRecord[] = [
{
auditors: [
{
- auditorPub: "XN9KMN5G2KGPCAN0E89MM5HE8FV4WBWA9KDTMTDR817MWBCYA7H0",
+ auditorPub: "BW9DC48PHQY4NH011SHHX36DZZ3Q22Y6X7FZ1VD1CMZ2PTFZ6PN0",
baseUrl: "https://auditor.demo.taler.net/",
expirationStamp: (new Date(2027, 1)).getTime(),
},
@@ -336,15 +336,6 @@ const builtinCurrencies: CurrencyRecord[] = [
fractionalDigits: 2,
name: "KUDOS",
},
- {
- auditors: [
- ],
- exchanges: [
- { baseUrl: "https://exchange.test.taler.net/", priority: 0 },
- ],
- fractionalDigits: 2,
- name: "PUDOS",
- },
];
@@ -1503,13 +1494,12 @@ export class Wallet {
.toArray()
) || [];
+ const trustedAuditorPubs = [];
const currencyRecord = await this.q().get<CurrencyRecord>(Stores.currencies, amount.currency);
- if (!currencyRecord) {
- throw Error("currency not found");
+ if (currencyRecord) {
+ trustedAuditorPubs.push(...currencyRecord.auditors.map((a) => a.auditorPub));
}
- const trustedAuditorPubs = currencyRecord.auditors.map((a) => a.auditorPub);
-
const ret: ReserveCreationInfo = {
earliestDepositExpiration,
exchangeInfo,