-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Listening Bug when filter as no address [ethers-v5] #741
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
Comments
ricmoo
added
investigate
Under investigation and may be a bug.
on-deck
This Enhancement or Bug is currently being worked on.
labels
Feb 27, 2020
Ack! Good catch. I'll fix this right away. Also thanks for investigating. :) |
ricmoo
added
bug
Verified to be an issue.
and removed
investigate
Under investigation and may be a bug.
labels
Feb 27, 2020
ricmoo
added a commit
that referenced
this issue
Feb 27, 2020
The changes are made and the tests are running. Once they complete I'll publish to NPM. |
Published to |
Thanks @ricmoo you are the real MVP ! |
ricmoo
added
the
fixed/complete
This Bug is fixed or Enhancement is complete and published.
label
Mar 30, 2020
michaeltout
pushed a commit
to michaeltout/ethers.js
that referenced
this issue
Aug 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
Hello @ricmoo !
I was experimenting on private networks and I found a bug on the v5 version of ethers.
When listening on events via filters without any address I got an unexpected error
network does not support ENS
. I try to reproduce on v4.0.45 but everything works as intended.Error
After some investigation I found that the error was caused by the filter serialization.
'*'
'*'
instead of''
.resolveProperties
function trying to resolve'*'
as an ENS name.You can see that in ethers v4.0.45 the line of step 1) convert empty addresses in
''
instead of'*'
.That is why there is no error in v4.
Proposed fix
Simply replace the line at step 1) of v5 by the one of v4.
Anyway thanks a lot for your work and your time!
The text was updated successfully, but these errors were encountered: