fix(blockchain): add warning when using Parity and Metamask
This commit is contained in:
parent
0262ebe70e
commit
2f6e90d748
|
@ -85,6 +85,9 @@ Blockchain.connect = function(connectionList, opts, doneCb) {
|
||||||
if(opts.blockchainClient === 'geth') {
|
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");
|
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");
|
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) {
|
if (accounts) {
|
||||||
|
|
Loading…
Reference in New Issue