Skip to content

Commit

Permalink
Fixed solc imports for cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 19, 2019
1 parent 8316406 commit c35ddaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src.ts/solc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function compile(source: string, options?: CompilerOptions): Array<Contra
let findImport = (filename: string): { contents?: string, error?: string } => {
try {
return {
contents: fs.readFileSync(resolve(options.basedir, options.filename)).toString()
contents: fs.readFileSync(resolve(options.basedir, filename)).toString()
};
} catch (error) {
return { error: error.message }
Expand Down

0 comments on commit c35ddaf

Please sign in to comment.