From 7a0b947553641819c173e9fae7072bda9f00fa51 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 12 Jul 2021 17:10:05 +1000 Subject: [PATCH] Add logs on light push --- examples/eth-dm/src/BroadcastPublicKey.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/eth-dm/src/BroadcastPublicKey.tsx b/examples/eth-dm/src/BroadcastPublicKey.tsx index d54235d64c..c0f010d826 100644 --- a/examples/eth-dm/src/BroadcastPublicKey.tsx +++ b/examples/eth-dm/src/BroadcastPublicKey.tsx @@ -40,9 +40,12 @@ export default function BroadcastPublicKey({ setPublicKeyMsg(msg); encodePublicKeyWakuMessage(msg) .then((wakuMsg) => { - waku.lightPush.push(wakuMsg).catch((e) => { - console.error('Failed to send Public Key Message', e); - }); + waku.lightPush + .push(wakuMsg) + .then((res) => console.log('Public Key Message pushed', res)) + .catch((e) => { + console.error('Failed to send Public Key Message', e); + }); }) .catch((e) => { console.log(