docs: Fixed topicset example (#1538).

This commit is contained in:
Richard Moore 2021-08-09 15:48:02 -03:00
parent 2653449f3c
commit 2dd5c1a6d2
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -453,6 +453,7 @@ _code: Events Example @lang<javascript>
//_hide: const txHash = utils.id("dummy-data");
//_hide: const myAddress = ethers.constants.HashZero;
//_hide: const myOtherAddress = ethers.constants.HashZero;
//_hide: const hexZeroPad = ethers.utils.hexZeroPad;
provider.on("block", (blockNumber) => {
// Emitted on every block change
@ -484,8 +485,8 @@ topicSets = [
utils.id("Transfer(address,address,uint256)"),
null,
[
myAddress,
myOtherAddress
hexZeroPad(myAddress, 32),
hexZeroPad(myOtherAddress, 32)
]
]
provider.on(topicSets, (log, event) => {