text: import Web3 from 'web3';
  
  const provider = (typeof window.web3 !== 'undefined') ?
      window.web3.currentProvider :
      new Web3.providers.HttpProvider("http://localhost:8545");
  
  const web3 = new Web3(provider);
  
  export default web3;