rue-mist-interface
Version:
Mist interface application
11 lines (8 loc) • 341 B
JavaScript
// set providor
//if (typeof web3 !== 'undefined') {
// console.info('Web3 already initialized, re-using provider.');
//web3 = new Web3(web3.currentProvider);
//} else {
//console.info('Web3 not yet initialized, doing so now with HttpProvider.');
web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));
//}//