update web3 0.3.4 -> 0.5.0

This commit is contained in:
Marek Kotewicz 2015-06-04 12:33:14 +02:00
parent 406931b1fb
commit d545354982
3 changed files with 2307 additions and 427 deletions

2728
js/web3.js

File diff suppressed because it is too large Load Diff

View File

@ -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>",

View File

@ -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)