wallet-core: log insufficient balance details
This commit is contained in:
parent
420493b3e6
commit
3bcac051ed
@ -1373,6 +1373,9 @@ export async function checkPaymentByProposalId(
|
|||||||
|
|
||||||
if (res.type !== "success") {
|
if (res.type !== "success") {
|
||||||
logger.info("not allowing payment, insufficient coins");
|
logger.info("not allowing payment, insufficient coins");
|
||||||
|
logger.info(
|
||||||
|
`insufficient balance details: ${j2s(res.insufficientBalanceDetails)}`,
|
||||||
|
);
|
||||||
return {
|
return {
|
||||||
status: PreparePayResultType.InsufficientBalance,
|
status: PreparePayResultType.InsufficientBalance,
|
||||||
contractTerms: d.contractTermsRaw,
|
contractTerms: d.contractTermsRaw,
|
||||||
|
Loading…
Reference in New Issue
Block a user