diff options
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |