diff options
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r-- | src/wxApi.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts index b74cb9eb1..1f7d08fb3 100644 --- a/src/wxApi.ts +++ b/src/wxApi.ts @@ -17,11 +17,12 @@ import { AmountJson, CoinRecord, + CurrencyRecord, + DenominationRecord, + ExchangeRecord, PreCoinRecord, ReserveCreationInfo, - ExchangeRecord, - CurrencyRecord, - ReserveRecord, DenominationRecord + ReserveRecord, } from "./types"; /** @@ -31,13 +32,13 @@ import { export function getReserveCreationInfo(baseUrl: string, - amount: AmountJson): Promise<ReserveCreationInfo> { - let m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; + amount: AmountJson): Promise<ReserveCreationInfo> { + const m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; return new Promise<ReserveCreationInfo>((resolve, reject) => { chrome.runtime.sendMessage(m, (resp) => { if (resp.error) { console.error("error response", resp); - let e = Error("call to reserve-creation-info failed"); + const e = Error("call to reserve-creation-info failed"); (e as any).errorResponse = resp; reject(e); return; |