diff --git a/docs/web3-shh.rst b/docs/web3-shh.rst index ddacc1026e2..55c13bb37a1 100644 --- a/docs/web3-shh.rst +++ b/docs/web3-shh.rst @@ -769,7 +769,7 @@ Example ]).then(() => { // will receive also its own message send, below - subscription = shh.subscribe("messages", { + subscription = web3.shh.subscribe("messages", { symKeyID: identities[0], topics: ['0xffaadd11'] }).on('data', console.log);