From 2dd5c1a6d2e1288d7a2193ad6961362a1f412199 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 9 Aug 2021 15:48:02 -0300 Subject: [PATCH] docs: Fixed topicset example (#1538). --- docs.wrm/api/providers/provider.wrm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs.wrm/api/providers/provider.wrm b/docs.wrm/api/providers/provider.wrm index 28a9fbbc1..d588ff9e1 100644 --- a/docs.wrm/api/providers/provider.wrm +++ b/docs.wrm/api/providers/provider.wrm @@ -453,6 +453,7 @@ _code: Events Example @lang //_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) => {