mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 10:28:15 +00:00
Add logs on light push
This commit is contained in:
parent
48bdb0b3f2
commit
7a0b947553
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user