remove unused constructor parameter
This commit is contained in:
		@@ -9,11 +9,10 @@ import { SolidityDocFormat } from './solidity_doc_format';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export class SolidityDocGenerator {
 | 
					export class SolidityDocGenerator {
 | 
				
			||||||
    private readonly _compilerOptions: CompilerOptions;
 | 
					    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
 | 
					        // instantiate sol-compiler, passing in options to say we want abi and devdoc
 | 
				
			||||||
        this._compilerOptions = {
 | 
					        this._compilerOptions = {
 | 
				
			||||||
            contractsDir,
 | 
					            contractsDir,
 | 
				
			||||||
            artifactsDir,
 | 
					 | 
				
			||||||
            contracts: '*',
 | 
					            contracts: '*',
 | 
				
			||||||
            compilerSettings: {
 | 
					            compilerSettings: {
 | 
				
			||||||
                outputSelection: {
 | 
					                outputSelection: {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,10 +10,7 @@ const expect = chai.expect;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
describe('#SolidityDocGenerator', () => {
 | 
					describe('#SolidityDocGenerator', () => {
 | 
				
			||||||
    it('should generate', async () => {
 | 
					    it('should generate', async () => {
 | 
				
			||||||
        const generator = new SolidityDocGenerator(
 | 
					        const generator = new SolidityDocGenerator(`${__dirname}/../../test/fixtures/contracts`);
 | 
				
			||||||
            `${__dirname}/../../test/fixtures/contracts`,
 | 
					 | 
				
			||||||
            `${__dirname}/../../test/fixtures/artifacts`,
 | 
					 | 
				
			||||||
        );
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const doc = await generator.generateAsync(['TokenTransferProxy']);
 | 
					        const doc = await generator.generateAsync(['TokenTransferProxy']);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user