aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-25 01:05:35 +0800
committerF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-25 01:05:35 +0800
commita9002558207883f66e3bb180415985d823f03772 (patch)
treef1063e84097f7fb12be2be96f2fb25a5229849be /packages/sol-doc
parentbd7565ceda1c54b51b601c0f6adf56161d7b6511 (diff)
downloaddexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar.gz
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar.bz2
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar.lz
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar.xz
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.tar.zst
dexon-sol-tools-a9002558207883f66e3bb180415985d823f03772.zip
fix: document indexed event arguments
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index b2b5daff3..0df4a4af1 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -8,6 +8,7 @@ import {
DataItem,
DevdocOutput,
EventAbi,
+ EventParameter,
FallbackAbi,
MethodAbi,
StandardContractOutput,
@@ -215,7 +216,7 @@ function _genEventDoc(abiDefinition: EventAbi): Event {
return eventDoc;
}
-function _genEventArgsDoc(args: DataItem[], devdocIfExists: DevdocOutput | undefined): EventArg[] {
+function _genEventArgsDoc(args: EventParameter[], devdocIfExists: DevdocOutput | undefined): EventArg[] {
const eventArgsDoc: EventArg[] = [];
for (const arg of args) {
@@ -227,7 +228,7 @@ function _genEventArgsDoc(args: DataItem[], devdocIfExists: DevdocOutput | undef
};
const eventArgDoc: EventArg = {
- isIndexed: false, // TODO: wtf is this?
+ isIndexed: arg.indexed,
name,
type,
};