console.warn('MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider \nhttps://github.com/ethereum/mist/releases/tag/v0.9.0')
console.warn('MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider \nhttps://github.com/ethereum/mist/releases/tag/v0.9.0')
_web3._used=Date.now()
hasBeenWarned=true
}
}
return_web3[name]
// get the time of use
lastTimeUsed=Date.now()
// return value normally
return_web3[key]
},
},
set:(_web3,name,value)=>{
set:(_web3,key,value)=>{
_web3[name]=value
// set value normally
_web3[key]=value
},
},
})
})
varnetworkVersion
observable.subscribe(function(state){
observable.subscribe(function(state){
// get the initial network
// if reload in progress, no need to check reload logic