ethers.js: Error: filtering with tuples or arrays not supported
Hey,
I have array of Hashes that I want to log in an event so that I can search for the hashes later on. But ethers.js doesn’t seem to filter the array of Hashes present.
Solidity code:
event onSubmission(bytes32[] indexed docHash);
NodeJs code:
const filter = await contract.filters.onSubmission(["0x69a013f23c52f5415ae41e64561a6948e08df59904925db53f0df74fd64a3833"]);
I get:
Error: filtering with tuples or arrays not supported (argument="contract.docHash", value=[], code=INVALID_ARGUMENT, version=abi/5.0.1)
Is it possible to search for an array inside a event?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (7 by maintainers)
Hey @ricmoo. Thanks for your hints. I am using your way of emitting onSumbission(bytes32 docHash) by looping through all the docHashes