diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-25 01:05:35 +0800 |
---|---|---|
committer | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-25 01:05:35 +0800 |
commit | a9002558207883f66e3bb180415985d823f03772 (patch) | |
tree | f1063e84097f7fb12be2be96f2fb25a5229849be /packages/sol-doc/src/solidity_doc_generator.ts | |
parent | bd7565ceda1c54b51b601c0f6adf56161d7b6511 (diff) | |
download | dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar.gz dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar.bz2 dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar.lz dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar.xz dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.tar.zst dexon-0x-contracts-a9002558207883f66e3bb180415985d823f03772.zip |
fix: document indexed event arguments
Diffstat (limited to 'packages/sol-doc/src/solidity_doc_generator.ts')
-rw-r--r-- | packages/sol-doc/src/solidity_doc_generator.ts | 5 |
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, }; |