From 36b07e87a4f968506a58e8e1fb899a0c99aba1e0 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 3 Apr 2020 16:25:02 -0400 Subject: [PATCH] send preimage for sendpayment action --- services/gunDB/Mediator/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index 0e34ba4e..43627866 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -776,11 +776,11 @@ class Mediator { await throwOnInvalidToken(token) - await API.Actions.sendPayment(recipientPub, amount, memo) + const preimage = await API.Actions.sendPayment(recipientPub, amount, memo) this.socket.emit(Action.SEND_PAYMENT, { ok: true, - msg: null, + msg: preimage, origBody: reqBody }) } catch (err) {