Skip to content
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

gasPrice issue on xDAI #410

Open
aminlatifi opened this issue Jan 19, 2022 · 7 comments
Open

gasPrice issue on xDAI #410

aminlatifi opened this issue Jan 19, 2022 · 7 comments

Comments

@aminlatifi
Copy link

Describe the bug
Transactions are not sent on xDAI network. It happens occasionally and on failure, this message appears as an error in the console related to gasPrice

The confirmation window is shown in Torus and I confirm, but the app stays in a pending state and the transaction is not created.

To Reproduce
It happens sometimes, but you can test it on our application https://staging.giv.giveth.io

Expected behavior

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version 97

Additional context
We pass an empty object or nothing as transaction options to contract calls using ethers contract.

@aminlatifi
Copy link
Author

aminlatifi commented Jan 20, 2022

It sometimes works, but after a couple of transactions, the above issue happens again.

@jadbox
Copy link

jadbox commented Jan 26, 2022

I'm having the same issue on Polygon and Polygon Mumbai. It seems to be consistent for me. For reference I'm using Torus-embed through Onboard.js (although we're using an Onboard fork that uses the latest version of Torus-embed).

Version we're on:
"@toruslabs/torus-embed": "^1.20.2",

@jadbox
Copy link

jadbox commented Jan 26, 2022

I also tried forcing the dependency for "@toruslabs/torus.js" to "^4.2.6" without any luck.

@jadbox
Copy link

jadbox commented Jan 27, 2022

Oddly this issue only happens on Mumbai Polygon (80001) and not on Polygon Mainnet (137)

@aminlatifi
Copy link
Author

Oddly this issue only happens on Mumbai Polygon (80001) and not on Polygon Mainnet (137)

I had the issue on Kovan and xDai as well.

@jadbox
Copy link

jadbox commented Jan 30, 2022

The only different I see between Polygon 137 and Testnet 80001 is the failure to fetch gas values.

Torus calls this API for Polygon successfully:
https://gas-api.metaswap.codefi.network/networks/137/suggestedGasFees

However for Testnet, the API gets a 404 error when calling to:
https://gas-api.metaswap.codefi.network/networks/80001/suggestedGasFees

Then the Torus-embed library raises the error:

Uncaught (in promise) Error: Invalid transaction params: specified gasPrice but also included maxFeePerGas, these cannot be mixed
    at getEthJsonRpcError

@kaptain-ti
Copy link

kaptain-ti commented Apr 20, 2022

Also FUJI TESTNET for AVALANCHE is giving similar error:
https://gas-api.metaswap.codefi.network/networks/43113/suggestedGasFees
"Cannot read property 'getBlock' of undefined"

torus_bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants