From 0c825fe3916fd8aaee61bc5c0383131dc6a70f28 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 18 Jun 2021 15:11:09 +1000 Subject: [PATCH] Use lightpush for all messages --- examples/eth-dm/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/eth-dm/src/App.tsx b/examples/eth-dm/src/App.tsx index 753a3f99ea..516b5b055f 100644 --- a/examples/eth-dm/src/App.tsx +++ b/examples/eth-dm/src/App.tsx @@ -108,7 +108,7 @@ function App() { if (publicKeyMsg) { const wakuMsg = encodePublicKeyWakuMessage(publicKeyMsg); - waku.relay.send(wakuMsg).catch((e) => { + waku.lightPush.push(wakuMsg).catch((e) => { console.error('Failed to send Public Key Message'); }); } else { @@ -116,7 +116,7 @@ function App() { .then((msg) => { setPublicKeyMsg(msg); const wakuMsg = encodePublicKeyWakuMessage(msg); - waku.relay.send(wakuMsg).catch((e) => { + waku.lightPush.push(wakuMsg).catch((e) => { console.error('Failed to send Public Key Message'); }); })