From 404c8125df382b2428c3e4d19ffd6edba5da497e Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Tue, 3 Nov 2020 13:12:31 -0400 Subject: [PATCH] avoid malformed invoice amount --- services/gunDB/contact-api/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 1a9d4cf1..c067b4d3 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1044,7 +1044,9 @@ const sendSpontaneousPayment = async ( const payment = await sendPaymentV2Invoice({ feeLimit, - payment_request: orderResponse.response + payment_request: orderResponse.response, + // avoid malformed invoice amount + amt: amount.toString() }) if (Utils.successfulHandshakeAlreadyExists(to)) {