mirror of https://github.com/waku-org/js-waku.git
Add logs on light push
This commit is contained in:
parent
48bdb0b3f2
commit
7a0b947553
|
@ -40,7 +40,10 @@ export default function BroadcastPublicKey({
|
|||
setPublicKeyMsg(msg);
|
||||
encodePublicKeyWakuMessage(msg)
|
||||
.then((wakuMsg) => {
|
||||
waku.lightPush.push(wakuMsg).catch((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);
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue