wallet-core: log insufficient balance details

This commit is contained in:
Florian Dold 2023-01-18 00:17:07 +01:00
parent 420493b3e6
commit 3bcac051ed
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1373,6 +1373,9 @@ export async function checkPaymentByProposalId(
if (res.type !== "success") {
logger.info("not allowing payment, insufficient coins");
logger.info(
`insufficient balance details: ${j2s(res.insufficientBalanceDetails)}`,
);
return {
status: PreparePayResultType.InsufficientBalance,
contractTerms: d.contractTermsRaw,