aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/wallet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wallet/wallet.ts')
-rw-r--r--lib/wallet/wallet.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/wallet/wallet.ts b/lib/wallet/wallet.ts
index 380243b44..851b7b048 100644
--- a/lib/wallet/wallet.ts
+++ b/lib/wallet/wallet.ts
@@ -320,7 +320,7 @@ export namespace Stores {
super("coins", {keyPath: "coinPub"});
}
- exchangeBaseUrlIndex = new Index<string,Coin>(this, "exchangeBaseUrl", "exchageBaseUrl");
+ exchangeBaseUrlIndex = new Index<string,Coin>(this, "exchangeBaseUrl", "exchangeBaseUrl");
}
class HistoryStore extends Store<HistoryRecord> {
@@ -461,10 +461,10 @@ export class Wallet {
let x: number;
- function storeExchangeCoin(mc: any, url: string) {
- let exchange: IExchangeInfo = mc[0];
+ function storeExchangeCoin(mc: JoinResult<IExchangeInfo, Coin>, url: string) {
+ let exchange: IExchangeInfo = mc.left;
console.log("got coin for exchange", url);
- let coin: Coin = mc[1];
+ let coin: Coin = mc.right;
if (coin.suspended) {
console.log("skipping suspended coin",
coin.denomPub,
@@ -517,6 +517,7 @@ export class Wallet {
console.log("not suitable exchanges found");
}
+ console.log("exchange coins:");
console.dir(m);
// We try to find the first exchange where we have