diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-08-30 23:24:41 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-08-30 23:24:41 +0800 |
commit | f76c88c5491a9ec3a6b902b291dcfaf8ac64ecd5 (patch) | |
tree | 4bd1b9963711864a41722477fff5b53d22316a08 | |
parent | 863966787f65fe61057ac45f34827ba70fee844a (diff) | |
download | dexon-0x-contracts-f76c88c5491a9ec3a6b902b291dcfaf8ac64ecd5.tar.gz dexon-0x-contracts-f76c88c5491a9ec3a6b902b291dcfaf8ac64ecd5.tar.zst dexon-0x-contracts-f76c88c5491a9ec3a6b902b291dcfaf8ac64ecd5.zip |
remove unused constructor parameter
-rw-r--r-- | packages/sol-doc/src/solidity_doc_generator.ts | 3 | ||||
-rw-r--r-- | packages/sol-doc/test/solidity_doc_generator_test.ts | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts index fa3c40dcc..a4eb403a8 100644 --- a/packages/sol-doc/src/solidity_doc_generator.ts +++ b/packages/sol-doc/src/solidity_doc_generator.ts @@ -9,11 +9,10 @@ import { SolidityDocFormat } from './solidity_doc_format'; export class SolidityDocGenerator { private readonly _compilerOptions: CompilerOptions; - constructor(contractsDir: string, artifactsDir: string) { + constructor(contractsDir: string) { // instantiate sol-compiler, passing in options to say we want abi and devdoc this._compilerOptions = { contractsDir, - artifactsDir, contracts: '*', compilerSettings: { outputSelection: { diff --git a/packages/sol-doc/test/solidity_doc_generator_test.ts b/packages/sol-doc/test/solidity_doc_generator_test.ts index 697974c6e..1df3e5b44 100644 --- a/packages/sol-doc/test/solidity_doc_generator_test.ts +++ b/packages/sol-doc/test/solidity_doc_generator_test.ts @@ -10,10 +10,7 @@ const expect = chai.expect; describe('#SolidityDocGenerator', () => { it('should generate', async () => { - const generator = new SolidityDocGenerator( - `${__dirname}/../../test/fixtures/contracts`, - `${__dirname}/../../test/fixtures/artifacts`, - ); + const generator = new SolidityDocGenerator(`${__dirname}/../../test/fixtures/contracts`); const doc = await generator.generateAsync(['TokenTransferProxy']); |