Documentation for Event Emitter with topicSets omits required padding for addresses in topics #1535
Labels
documentation
Documentation related issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
The documentation for event emitters has an example whereby the following code is used:
Unfortunately, this causes an error which is addressed elsewhere in the documentation by the addition of the
utils.hexZeroPad
method. If this is indeed a mistake as I suspect, I'm happy to submit a PR to fix it.Edit: I see when looking at the docs
myOtherAddress
is defined asAddressZero
inevents.wrm
but asHashZero
inprovider.wrm
, so it seems that everything would work as expected, however it might be clearer to end users if types were updated here to those which would more commonly be used in this situation (assuming users are more likely to pass a plain address as a string to this method rather than as a padded 32 byte hex string).The text was updated successfully, but these errors were encountered: