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'); }); })