remove unused constructor parameter
This commit is contained in:
@@ -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: {
|
||||
|
@@ -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']);
|
||||
|
||||
|
Reference in New Issue
Block a user