aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-03-01 19:39:17 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-03-01 19:39:17 +0100
commit9a197d619c02f7787311b191da3da693380304b6 (patch)
tree1e2132a4b9d8ba1e7c16705acf0a6269c54644a1 /lib/wallet/db.ts
parent65eabbf6daceb6a183014b2f09341fd73ca73c21 (diff)
downloadwallet-core-9a197d619c02f7787311b191da3da693380304b6.tar.xz
mint->exchange
Diffstat (limited to 'lib/wallet/db.ts')
-rw-r--r--lib/wallet/db.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/wallet/db.ts b/lib/wallet/db.ts
index c7621c5ff..2503468d5 100644
--- a/lib/wallet/db.ts
+++ b/lib/wallet/db.ts
@@ -45,12 +45,12 @@ export function openTalerDb(): Promise<IDBDatabase> {
console.log("DB: upgrade needed: oldVersion = " + e.oldVersion);
switch (e.oldVersion) {
case 0: // DB does not exist yet
- const mints = db.createObjectStore("mints", {keyPath: "baseUrl"});
- mints.createIndex("pubKey", "masterPublicKey");
+ const exchanges = db.createObjectStore("exchanges", {keyPath: "baseUrl"});
+ exchanges.createIndex("pubKey", "masterPublicKey");
db.createObjectStore("reserves", {keyPath: "reserve_pub"});
db.createObjectStore("denoms", {keyPath: "denomPub"});
const coins = db.createObjectStore("coins", {keyPath: "coinPub"});
- coins.createIndex("mintBaseUrl", "mintBaseUrl");
+ coins.createIndex("exchangeBaseUrl", "exchangeBaseUrl");
const transactions = db.createObjectStore("transactions",
{keyPath: "contractHash"});
transactions.createIndex("repurchase",