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 /lib | |
parent | df17c338988260aab4db8f946076a67f3323caba (diff) | |
download | go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar.gz go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar.bz2 go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar.lz go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar.xz go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.tar.zst go-tangerine-8613382869503c6123c3f47772bfdb192f6d3c76.zip |
moved comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/contract.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/contract.js b/lib/contract.js index 13c48ca10..0bf3ee471 100644 --- a/lib/contract.js +++ b/lib/contract.js @@ -178,11 +178,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(); @@ -190,8 +190,6 @@ var contract = function (address, desc) { } }); - - var result = {}; addFunctionRelatedPropertiesToContract(result); addFunctionsToContract(result, desc, address); |