mirror of https://github.com/embarklabs/embark.git
update web3 0.3.4 -> 0.5.0
This commit is contained in:
parent
406931b1fb
commit
d545354982
2718
js/web3.js
2718
js/web3.js
File diff suppressed because it is too large
Load Diff
|
@ -24,7 +24,7 @@
|
|||
"matchdep": "^0.3.0",
|
||||
"read-yaml": "^1.0.0",
|
||||
"shelljs": "^0.5.0",
|
||||
"web3": "^0.4.3",
|
||||
"web3": "^0.5.0",
|
||||
"wrench": "^1.5.8"
|
||||
},
|
||||
"author": "Iuri Matias <iuri.matias@gmail.com>",
|
||||
|
|
|
@ -37,7 +37,7 @@ module.exports = (grunt) ->
|
|||
|
||||
result += "var #{className}Abi = #{abi};"
|
||||
result += "var #{className}Contract = web3.eth.contract(#{className}Abi);"
|
||||
result += "var #{className} = new #{className}Contract('#{contractAddress}');";
|
||||
result += "var #{className} = #{className}Contract.at('#{contractAddress}');";
|
||||
else
|
||||
#for geth < 0.9.23
|
||||
contract = compiled_contracts
|
||||
|
@ -49,7 +49,7 @@ module.exports = (grunt) ->
|
|||
|
||||
result += "var #{className}Abi = #{abi};"
|
||||
result += "var #{className}Contract = web3.eth.contract(#{className}Abi);"
|
||||
result += "var #{className} = new #{className}Contract('#{contractAddress}');";
|
||||
result += "var #{className} = #{className}Contract.at('#{contractAddress}');";
|
||||
|
||||
destFile = grunt.config.get("deploy.dest")
|
||||
grunt.file.write(destFile, result)
|
||||
|
|
Loading…
Reference in New Issue