logging, bump version
This commit is contained in:
parent
a7b89247e4
commit
a2591a29af
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gnu-taler/taler-wallet-cli",
|
"name": "@gnu-taler/taler-wallet-cli",
|
||||||
"version": "0.9.0-dev.1",
|
"version": "0.9.0-dev.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.12.0"
|
"node": ">=0.12.0"
|
||||||
|
@ -2035,13 +2035,19 @@ export class WalletCli {
|
|||||||
JSON.stringify(payload),
|
JSON.stringify(payload),
|
||||||
)}`,
|
)}`,
|
||||||
);
|
);
|
||||||
|
console.log("--- wallet core response ---");
|
||||||
console.log(resp);
|
console.log(resp);
|
||||||
const ar = JSON.parse(resp) as CoreApiResponse;
|
console.log("--- end of response ---");
|
||||||
|
let ar: any;
|
||||||
|
try {
|
||||||
|
ar = JSON.parse(resp) as CoreApiResponse;
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error("wallet CLI did not return a proper JSON response");
|
||||||
|
}
|
||||||
if (ar.type === "error") {
|
if (ar.type === "error") {
|
||||||
throw new OperationFailedError(ar.error);
|
throw new OperationFailedError(ar.error);
|
||||||
} else {
|
|
||||||
return ar.result;
|
|
||||||
}
|
}
|
||||||
|
return ar.result;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -998,10 +998,8 @@ export async function getExchangeWithdrawalInfo(
|
|||||||
baseUrl: string,
|
baseUrl: string,
|
||||||
amount: AmountJson,
|
amount: AmountJson,
|
||||||
): Promise<ExchangeWithdrawDetails> {
|
): Promise<ExchangeWithdrawDetails> {
|
||||||
const {
|
const { exchange, exchangeDetails } =
|
||||||
exchange,
|
await ws.exchangeOps.updateExchangeFromUrl(ws, baseUrl);
|
||||||
exchangeDetails,
|
|
||||||
} = await ws.exchangeOps.updateExchangeFromUrl(ws, baseUrl);
|
|
||||||
await updateWithdrawalDenoms(ws, baseUrl);
|
await updateWithdrawalDenoms(ws, baseUrl);
|
||||||
const denoms = await getCandidateWithdrawalDenoms(ws, baseUrl);
|
const denoms = await getCandidateWithdrawalDenoms(ws, baseUrl);
|
||||||
const selectedDenoms = selectWithdrawalDenominations(amount, denoms);
|
const selectedDenoms = selectWithdrawalDenominations(amount, denoms);
|
||||||
|
Loading…
Reference in New Issue
Block a user