-
Notifications
You must be signed in to change notification settings - Fork 51
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
Use chainId instead of networkId #196
Conversation
Deploy preview for kind-kilby-95344f processing. Building with commit 86c1bfa https://app.netlify.com/sites/kind-kilby-95344f/deploys/5c9bbcaff76f4c0007f31e3e |
Pull Request Test Coverage Report for Build 404
💛 - Coveralls |
@@ -41,8 +41,9 @@ class TxStore { | |||
this.getTxReceipt(hash) | |||
}).on('error', (e) => { | |||
if(!e.message.includes('not mined within 50 blocks') && !e.message.includes('Failed to subscribe to new newBlockHeaders')){ | |||
this.alertStore.setLoading(false) | |||
this.alertStore.pushError('Transaction rejected on wallet'); | |||
// False error is thrown by web3 https://github.com/ethereum/web3.js/issues/2542 |
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.
@akolotov An issue from web3 it throwing error Error: Transaction has been reverted by the EVM:
even if transaction was successful. The only workaround I found until it is fixed in a new version was to comment the code to stop the loading flow of the app when a transaction is submitted. The bad side is that if transaction is really reverted, the UI won't be notified
Instead of using
networkId
for detecting on which network the user is, now we usechainId
. For that I had to update to latest version ofweb3
since there is a newgetChainId
method. I could use raw request to get thechainId
for home and foreign networks, but I cannot access to the url used on the wallet, only by using the exposed web3 provider.For e2e tests I had to update the parity version. The e2e tests are failing, it seems an issue between the new web3 version we are using and the web3 version used by the metamask extension we are using on the test. I'll try to update the extension to a newer version.