aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-09-01 03:28:12 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-09-01 03:28:12 +0800
commit3dc4eb4421d4f0b1294fcaaa4602245005f36e82 (patch)
tree3fa34da90ecc4eb18523b6fdd5d8b862297c1de1
parent75664b66512fb32539626a42973d293ecad17584 (diff)
downloaddexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar.gz
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar.bz2
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar.lz
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar.xz
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.tar.zst
dexon-sol-tools-3dc4eb4421d4f0b1294fcaaa4602245005f36e82.zip
rename 2 variables
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index debee5b87..240fbbd75 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -211,16 +211,16 @@ function _genEventArgsDoc(args: DataItem[], devdocIfExists: DevdocOutput | undef
*/
function _genMethodParamsDoc(
name: string,
- params: DataItem[],
+ abiParams: DataItem[],
devdocIfExists: DevdocOutput | undefined,
): { parameters: Parameter[]; methodSignature: string } {
const parameters: Parameter[] = [];
- for (const input of params) {
+ for (const abiParam of abiParams) {
const parameter: Parameter = {
- name: input.name,
+ name: abiParam.name,
comment: '', // TODO: get from devdoc. see comment below.
isOptional: false, // Unsupported in Solidity, until resolution of https://github.com/ethereum/solidity/issues/232
- type: { name: input.type, typeDocType: TypeDocTypes.Intrinsic },
+ type: { name: abiParam.type, typeDocType: TypeDocTypes.Intrinsic },
};
parameters.push(parameter);
}