Add an explanatory comment
This commit is contained in:
		@@ -82,8 +82,10 @@ export class TruffleArtifactAdapter extends AbstractArtifactAdapter {
 | 
				
			|||||||
    private _getTruffleSolcSettings(): Partial<solc.CompilerSettings> {
 | 
					    private _getTruffleSolcSettings(): Partial<solc.CompilerSettings> {
 | 
				
			||||||
        const truffleConfig = this._getTruffleConfig();
 | 
					        const truffleConfig = this._getTruffleConfig();
 | 
				
			||||||
        if (!_.isUndefined(truffleConfig.solc)) {
 | 
					        if (!_.isUndefined(truffleConfig.solc)) {
 | 
				
			||||||
 | 
					            // Truffle < 5.0
 | 
				
			||||||
            return (truffleConfig as any).solc.settings;
 | 
					            return (truffleConfig as any).solc.settings;
 | 
				
			||||||
        } else if (!_.isUndefined((truffleConfig as any).compilers.solc)) {
 | 
					        } else if (!_.isUndefined((truffleConfig as any).compilers.solc)) {
 | 
				
			||||||
 | 
					            // Truffle >= 5.0
 | 
				
			||||||
            return (truffleConfig as any).compilers.solc.settings;
 | 
					            return (truffleConfig as any).compilers.solc.settings;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            return {};
 | 
					            return {};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user