-
Notifications
You must be signed in to change notification settings - Fork 4.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
Not getting success callback/ receipt with walletconnect with web3.js 1.3.3 - Closes #3891 #4304
Conversation
Your Render PR Server URL is https://web3-js-pr-4304.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c4t2rvhg7hpclai2skig. |
e5046c4
to
9633b8d
Compare
9633b8d
to
0414293
Compare
To come up with a solution which impact least on bandwidth usage and to providers which support
This approach will introduce no behaviour changes for providers which support @jdevcs @spacesailor24 Let me know if that solutions seems feasible to you in reference to the comment posted on issue earlier #3891 (comment). If its ok to you guys then I will add few more tests as well. Also let me know if that change required to update some other places as well. |
Pull Request Test Coverage Report for Build 1262839551
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple questions, but otherwise changes look good
Could use at least one other test if my test related question is correct, also needs CHANGELOG.md
update
I had tested it with @aksdevac provided code repo by linking |
I'm just going to commit this since it's a comment change, and so I can provide my approval without it going stale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating the docs!
it seems many files are not using es6 & es7 features, is there any plan to update it.? |
@aksdevac Yes for 1.x we are not refactoring the code a lot. As our focus is on the 4.x rewrite, which will cover best coding practices and Typescript language features. |
please help. I don't understand how to let it work. No events received after send calls |
@xale76 Hey, Can you please explain your comment. Are you referring to this PR? or to the issue itself? And how did you subscribed to those events which you mentioned not receiving? |
@nazarhussain hello, and thanks. I'm using web3modal together with walletconnectprovider. My react app works perfectly from browser and metamask extension (connected by infura node on rinkeby). If I use walletconnectprovider, so I use QR code and I confirm actions on metamask app on my android mobile, after the confirmation (in example an "approve" action), my code remains stuck in "await". In example await mytoken.methods.approve(spender,amount).send({from:address}); I don't know what you mean with "subscribed" to events. I don't know, what events you're talking about, and I think it's not easy to list every events and register for them. Is there any other solution? |
@xale76 This PR is about to fix that problem. Did you get the error even after compiling and linking this branch locally? |
@nazarhussain how to install this branch from npm? |
@xale76 You can not install the branch from npm. But this issue is scheduled for next release soon it will be available for you to test. |
Any update for this issues, or which release contains this fix?, plz |
Description
We were using an assumption that if any provider contains
on
handler, it must also supportnewBlockHeaders
event. Which was not the case for all providers and was not enforced by EIP-1193. So for the flow of waiting for the receipt we reverted back only to polling technique.Fixes: #3891
Type of change
Checklist:
CHANGELOG.md
file in the root folder.