You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn("Using web3 detected from external source like Metamask")
18
14
// If there is a web3 instance(in Mist/Metamask), then we use its provider to create our web3object
19
-
window.web3=newWeb3(web3.currentProvider);
15
+
window.web3=newWeb3(web3.currentProvider)
20
16
}else{
21
-
console.warn("No web3 detected. Falling back to http://localhost:7545. You should remove this fallback when you deploy live, as it's inherently insecure. Consider switching to Metamask for development. More info here: http://truffleframework.com/tutorials/truffle-and-metamask");
17
+
console.warn("No web3 detected. Falling back to http://localhost:7545. You should remove this fallback when you deploy live, as it's inherently insecure. Consider switching to Metamask for development. More info here: http://truffleframework.com/tutorials/truffle-and-metamask")
22
18
// fallback - use your fallback strategy (local node / hosted node + in-dapp id mgmt / fail)
0 commit comments