update web3 to latest version
This commit is contained in:
parent
ae4591ea01
commit
fe02278179
10361
js/web3.js
10361
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() {
|
Deploy.prototype.generate_provider_file = function() {
|
||||||
var result = "";
|
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];";
|
result += "web3.eth.defaultAccount = web3.eth.accounts[0];";
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue