solidity-docgen
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -83,3 +83,3 @@ "use strict"; | ||
get functions() { | ||
return lodash_1.uniqBy(lodash_1.flatten(this.inheritance.map(c => c.ownFunctions)), f => f.signature); | ||
return lodash_1.uniqBy(lodash_1.flatten(this.inheritance.map(c => c.ownFunctions)), f => f.name === 'constructor' ? 'constructor' : f.signature); | ||
} | ||
@@ -86,0 +86,0 @@ get ownFunctions() { |
@@ -90,2 +90,14 @@ "use strict"; | ||
}); | ||
ava_1.default('two inherited constructors', t => { | ||
const solcOutput = new solc_1.SolcOutputBuilder() | ||
.file('Foo.sol') | ||
.contract('Foo') | ||
.function('constructor', 'uint256') | ||
.contract('FooFlavor', 'Foo') | ||
.function('constructor', 'string'); | ||
const source = buildSource(solcOutput); | ||
const foof = source.contracts[1]; | ||
t.is(foof.name, 'FooFlavor'); | ||
t.is(foof.functions.length, 1); | ||
}); | ||
//# sourceMappingURL=solidity.test.js.map |
{ | ||
"name": "solidity-docgen", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "Solidity API documentation automatic generator.", | ||
@@ -43,3 +43,3 @@ "bin": { | ||
"@types/minimatch": "^3.0.3", | ||
"@types/node": "^12.7.9", | ||
"@types/node": "^12.12.5", | ||
"@types/semver": "^6.0.2", | ||
@@ -46,0 +46,0 @@ "ava": "^2.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
255561
1231