Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 4b6ee08

Browse files
committed
Fixed missing filters bucket on contract in example code (reported on Twitter).
1 parent 26cfecd commit 4b6ee08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ethers.js/source/api-contract.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ of a contract.
716716
717717
// The null field indicates any value matches, this specifies
718718
// "any Transfer from any to myAddress"
719-
let filter = contract.Transfer(null, myAddress);
719+
let filter = contract.filters.Transfer(null, myAddress);
720720
721721
// Listen for our filtered results
722722
contract.on(filter, (from, to, value) => {

0 commit comments

Comments
 (0)