Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
fix the regex for solc version in etherlime verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognyan Chikov committed Jul 3, 2019
1 parent 36299b1 commit 3e70a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/etherlime/cli-commands/verifier/verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Verifier {
}

async _flattenSourceCode(contractWrapper) {
const regexp = /[0-9]?\.[0-9]?\.[0-9]?/;
const regexp = /[0-9]?\.[0-9]?\.[0-9]?[0-9]?/;
const solcVersion = regexp.exec(contractWrapper._contract.compiler.version)[0];
const sourceCode = await runWithoutWriteFiles(`${contractWrapper._contract.contractName}.sol`, solcVersion);
return sourceCode
Expand Down

0 comments on commit 3e70a67

Please sign in to comment.