From 3e70a6748d2b296cb29bd21de3632a1027e3dfbc Mon Sep 17 00:00:00 2001 From: Ognyan Chikov Date: Wed, 3 Jul 2019 16:06:05 +0300 Subject: [PATCH] fix the regex for solc version in etherlime verifier --- packages/etherlime/cli-commands/verifier/verifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/etherlime/cli-commands/verifier/verifier.js b/packages/etherlime/cli-commands/verifier/verifier.js index 4e70c51a9..e4dcda826 100644 --- a/packages/etherlime/cli-commands/verifier/verifier.js +++ b/packages/etherlime/cli-commands/verifier/verifier.js @@ -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