Commit 8ddacb47 authored by Theerathat Pornprinya's avatar Theerathat Pornprinya

Update version for final archive

parent a96be1bf
......@@ -14,12 +14,13 @@ App = {
initWeb3: function() {
if (typeof web3 !== 'undefined') {
// If a web3 instance is already provided by Meta Mask.
// check if web3 is not defined => no metamask
App.web3Provider = web3.currentProvider;
web3 = new Web3(web3.currentProvider);
} else {
// Specify default instance if no web3 instance provided
// otherwise it already has
App.web3Provider = new Web3.providers.HttpProvider('http://localhost:7545');
web3 = new Web3(App.web3Provider);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment