update web3 to latest version
This commit is contained in:
parent
ae4591ea01
commit
fe02278179
10607
js/web3.js
10607
js/web3.js
File diff suppressed because it is too large
Load Diff
|
@ -189,7 +189,8 @@ Deploy.prototype.execute_cmds = function(cmds) {
|
|||
|
||||
Deploy.prototype.generate_provider_file = function() {
|
||||
var result = "";
|
||||
result = "web3.setProvider(new web3.providers.HttpProvider('http://" + this.blockchainConfig.rpcHost + ":" + this.blockchainConfig.rpcPort + "'));";
|
||||
result += "var web3 = new Web3();";
|
||||
result += "web3.setProvider(new web3.providers.HttpProvider('http://" + this.blockchainConfig.rpcHost + ":" + this.blockchainConfig.rpcPort + "'));";
|
||||
result += "web3.eth.defaultAccount = web3.eth.accounts[0];";
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue