-
-
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
Fix 'TypeError: this is undefined' #860
Fix 'TypeError: this is undefined' #860
Conversation
(I'm adding testing to further make sure everything else works too) |
This should be fixed in 5.0.0-beta.190. There was quite. bit of refactoring, but there are now more tests in place to catch these. I still need to add a lot more tests, but for now this should cover the obvious things. Let me know! :) |
Awesome, this seems to be fixed, thanks! One thing I noticed in the new version is, if I pass
I will change my code so it only includes blockTag in overrides if it's not undefined, but is this intended behavior? Thanks again for the quick fix! |
Eek. I’ll add a test case and a fix for that in the morning. :) Thanks for all the testing. :) |
Cool, thanks so much! No worries, I love using Ethers 5 :) |
This should be fixed in 5.0.0-beta.191. Try it out and let me know. :) |
Indeed it's fixed! Thanks so much! :) |
Because
populateCallTransaction
is not called as a method, this line of code was throwingTypeError: this is undefined
at runtime for me in the browser. I still don't understand why my tests are passing though...Any ideas? Is this a valid fix?
UPDATE: hmm, could be that during tests the
from
override is never set.