fix(blockchain): add warning when using Parity and Metamask

This commit is contained in:
Jonathan Rainville 2019-01-11 15:52:03 -05:00
parent 0262ebe70e
commit 2f6e90d748
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ Blockchain.connect = function(connectionList, opts, doneCb) {
if(opts.blockchainClient === 'geth') {
console.warn("%cNote: There is a known issue with Geth that may cause transactions to get stuck when using Metamask. Please log in to the cockpit (http://localhost:8000/embark?enableRegularTxs=true) to enable a workaround. Once logged in, the workaround will automatically be enabled.", "font-size: 2em");
}
if(opts.blockchainClient === 'parity') {
console.warn("%cNote: Parity blocks the connection from browser extensions like Metamask. To resolve this problem, go to https://embark.status.im/docs/blockchain_configuration.html#Using-Parity-and-Metamask", "font-size: 2em");
}
console.warn("%cNote: Embark has detected you are in the development environment and using Metamask, please make sure Metamask is connected to your local node", "font-size: 2em");
}
if (accounts) {