formatting / DCE
This commit is contained in:
parent
4999920373
commit
7ba1f91823
@ -15,7 +15,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { InternalWalletState } from "./state";
|
import { InternalWalletState } from "./state";
|
||||||
import { ExchangeKeysJson, Denomination, ExchangeWireJson, codecForExchangeKeysJson, codecForExchangeWireJson } from "../types/talerTypes";
|
import {
|
||||||
|
ExchangeKeysJson,
|
||||||
|
Denomination,
|
||||||
|
codecForExchangeKeysJson,
|
||||||
|
codecForExchangeWireJson,
|
||||||
|
} from "../types/talerTypes";
|
||||||
import { OperationError } from "../types/walletTypes";
|
import { OperationError } from "../types/walletTypes";
|
||||||
import {
|
import {
|
||||||
ExchangeRecord,
|
ExchangeRecord,
|
||||||
@ -27,10 +32,7 @@ import {
|
|||||||
ExchangeUpdateReason,
|
ExchangeUpdateReason,
|
||||||
ExchangeUpdatedEventRecord,
|
ExchangeUpdatedEventRecord,
|
||||||
} from "../types/dbTypes";
|
} from "../types/dbTypes";
|
||||||
import {
|
import { canonicalizeBaseUrl } from "../util/helpers";
|
||||||
canonicalizeBaseUrl,
|
|
||||||
} from "../util/helpers";
|
|
||||||
import { Database } from "../util/query";
|
|
||||||
import * as Amounts from "../util/amounts";
|
import * as Amounts from "../util/amounts";
|
||||||
import { parsePaytoUri } from "../util/payto";
|
import { parsePaytoUri } from "../util/payto";
|
||||||
import {
|
import {
|
||||||
@ -127,7 +129,7 @@ async function updateExchangeWithKeys(
|
|||||||
throw new OperationFailedAndReportedError(m);
|
throw new OperationFailedAndReportedError(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastUpdateTimestamp = exchangeKeysJson.list_issue_date
|
const lastUpdateTimestamp = exchangeKeysJson.list_issue_date;
|
||||||
if (!lastUpdateTimestamp) {
|
if (!lastUpdateTimestamp) {
|
||||||
const m = `Parsing /keys response failed: invalid list_issue_date.`;
|
const m = `Parsing /keys response failed: invalid list_issue_date.`;
|
||||||
await setExchangeError(ws, baseUrl, {
|
await setExchangeError(ws, baseUrl, {
|
||||||
|
Loading…
Reference in New Issue
Block a user