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
confirmMetamaskTransaction function fails with the default metamask version 9.7.1 #252
Comments
The same issue on my side. |
Yep, on my as well |
@DimitarTAtanasov @RAMTO @ochikov thanks for reports guys. I will take a look in to this asap (today). Cheers, |
@DimitarTAtanasov @RAMTO @ochikov this issue should be fixed now. It was a quick fix, I will come up with something better until end of the week, but it should be still fine for now. I'm going to work on Metamask 10+ support in upcoming week and support both versions (<10 also). Thanks, |
@drptbl Thanks for the fast response. Using version 0.9.25-beta.26 I am still experiencing the same issue. |
@drptbl Can you give us a hand once again? Thank you in advance. |
@DimitarTAtanasov @ochikov sure, with pleasure :). Few questions:
Thanks for answers in advance, they will help me out with debugging. I will continue investigating this today. Cheers, |
Again when I remove the calling of I will try to record and upload a video asap. Please let me know if I could help with something else in the investigation. |
Sorry closed the issue by mistake. Reopening it |
This comment has been minimized.
This comment has been minimized.
Thanks for everything @DimitarTAtanasov, gonna dig in to this today, hopefully will have some solution until tonight. |
One more thing which is probably not for this discussion, but in the "changeMetamaskNetwork" if we have network set from the .env, we will not able to change the network as no matter what we pass to the function it will be replaced with the value from the env.
If "changeMetamaskNetwork" is made like this on purpose can we have another one for example: If you agree with this I could make a PR for this one. Thanks again |
Hey @DimitarTAtanasov, could you please try to run this test on your machine? Command to run: It creates a new gnosis safe on rinkeby, it's ugly but I wanted to do it as fast as possible as it will go to trash anyway. Can you let me know if it works for you? Or do you have same issues as above? I'm really trying to figure out what's going on, there is no way for me to reproduce the issue. I was thinking that maybe it's OS-related, but I'm also on macOS. side-note: Thanks again and sorry for taking your time. I'm still investigating in the meantime. |
This example works on my end as well. This is so confusing as I am using the confirmation the same way as in the example you gave me. I will try to dig more in this as well and will get back to you as soon as I have any result. |
Sorry just realized that the example worked for me as I removed the call of Still have the same issue when execute it with the original code... |
@DimitarTAtanasov Thanks for confirming! I'm currently trying to find another solution for |
Sure, thanks again, it is really strange why |
@DimitarTAtanasov Pushed a new update, Please try this version: And let me know if it has changed anything. If not, I will keep digging. Sorry for inconvenience. It's really hard to fix an issue when you're not able to reproduce it. Thanks, |
Damn.. I think that I've actually found related issue that we're experiencing:
|
@drptbl seems to be working with 0.9.25-beta.30 with Thanks again and have a nice evening :) |
Thanks for confirming @DimitarTAtanasov and thanks for helping me out to solve this one. I will fix Related issue: All best, |
Thanks for the great work on Synpress, this library looks awesome. Anyway I am struggling with something when I try to confirm transactions.
Steps to reproduce:
Leave env variable for metamask version blank (use the hardcoded version 9.7.1)
Execute: synpress run
Metamask is being initialized
The chosen address is visited
The user wallet is connected to the dApp
Button leading to transaction which needs confirmation from metamask is pressed.
Once needed to confirm metamask transaction, it is failed(screenshot attached)
Note:
Debugged the library and found where the confirmation is failing
cy.confirmMetamaskTransaction is calling -> confirmTransaction in ./commands/metamask.js
which is calling:
await puppeteer.waitClearAndType( newGasFee, confirmPageElements.gasFeeInput, notificationPage, );
- all the params passed to waitClearAndType defined.The function waitClearAndType is failing on the step:
await input.click({ clickCount: 3 });
Where 'input' is defined.I tried to replace
waitClearAndType
withwaitAndType
when called fromconfirmTransaction
and the transaction is passed successfully ( but the gas fee paid for the transaction is not right of course)Other workaround I tried is to skip the calling of
waitClearAndType
it is working as well, but there is possibility for the transaction not to be mined if the gas fee increased from the moment we triggered the transaction.Also if some of the latest versions of Metamask is used(tried with 10.2.2),
confirmMetamaskTransaction
is failing as well as in the last versions of Metamask, the confirmation page has no input field for the gas fee at all and it seems that the gas fee is recalculated by Metamask automatically. For these versions of metamask we could skip the steps for manually getting and setting the gas fee.The text was updated successfully, but these errors were encountered: