aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-16 23:54:22 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-16 23:54:22 +0100
commitd088aec009ff43a3d668539d3b0790b86974d3eb (patch)
tree68e5b2248a4a2a132496be1b75b6008d7aff26e1
parentf7b839188d0b4497ac623798a9bd8d1ab7f1bf30 (diff)
do not change fractional base yet
-rw-r--r--src/types.ts2
-rw-r--r--src/wallet.ts4
-rw-r--r--src/wxBackend.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/types.ts b/src/types.ts
index b04453767..9de769dfe 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -509,7 +509,7 @@ export type PayCoinInfo = Array<{ updatedCoin: CoinRecord, sig: CoinPaySig }>;
export namespace Amounts {
- export const fractionalBase = 1e8;
+ export const fractionalBase = 1e6;
export interface Result {
amount: AmountJson;
diff --git a/src/wallet.ts b/src/wallet.ts
index 4c4899bc2..9e96bffd3 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -353,7 +353,7 @@ export namespace Stores {
constructor() {
// case needed because of bug in type annotations
super("denominations",
- {keyPath: ["denomPub", "exchangeBaseUrl"] as any as IDBKeyPath});
+ {keyPath: ["exchangeBaseUrl", "denomPub"] as any as IDBKeyPath});
}
exchangeBaseUrlIndex = new Index<string, DenominationRecord>(this, "exchangeBaseUrl", "exchangeBaseUrl");
@@ -734,7 +734,7 @@ export class Wallet {
return;
}
const denom = await this.q().get(Stores.denominations,
- [exchange.baseUrl, preCoin.denomPub]);
+ [preCoin.exchangeBaseUrl, preCoin.denomPub]);
if (!denom) {
console.error("db inconsistent: denom for precoin not found");
return;
diff --git a/src/wxBackend.ts b/src/wxBackend.ts
index f738a953c..46a691923 100644
--- a/src/wxBackend.ts
+++ b/src/wxBackend.ts
@@ -34,7 +34,7 @@ import { ChromeBadge } from "./chromeBadge";
"use strict";
const DB_NAME = "taler";
-const DB_VERSION = 11;
+const DB_VERSION = 12;
import {Stores} from "./wallet";
import {Store, Index} from "./query";