diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-29 22:17:32 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-29 22:17:32 +0800 |
commit | 8613382869503c6123c3f47772bfdb192f6d3c76 (patch) | |
tree | c0794b5f65041517e79d6c901080ad76c35bfa31 /dist/ethereum.js | |
parent | df17c338988260aab4db8f946076a67f3323caba (diff) | |
download | dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar.gz dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar.bz2 dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar.lz dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar.xz dexon-8613382869503c6123c3f47772bfdb192f6d3c76.tar.zst dexon-8613382869503c6123c3f47772bfdb192f6d3c76.zip |
moved comment
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r-- | dist/ethereum.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js index deb3b0377..fc7bf09ca 100644 --- a/dist/ethereum.js +++ b/dist/ethereum.js @@ -609,11 +609,11 @@ var addEventsToContract = function (contract, desc, address) { var contract = function (address, desc) { + // workaround for invalid assumption that method.name is the full anonymous prototype of the method. + // it's not. it's just the name. the rest of the code assumes it's actually the anonymous + // prototype, so we make it so as a workaround. + // TODO: we may not want to modify input params, maybe use copy instead? desc.forEach(function (method) { - // workaround for invalid assumption that method.name is the full anonymous prototype of the method. - // it's not. it's just the name. the rest of the code assumes it's actually the anonymous - // prototype, so we make it so as a workaround. - // TODO: we may not want to modify input params, maybe use copy instead? if (method.name.indexOf('(') === -1) { var displayName = method.name; var typeName = method.inputs.map(function(i){return i.type; }).join(); @@ -621,8 +621,6 @@ var contract = function (address, desc) { } }); - - var result = {}; addFunctionRelatedPropertiesToContract(result); addFunctionsToContract(result, desc, address); |