From 90c6f63e3f0b1929f5f1e2b80250ff8a51cc9122 Mon Sep 17 00:00:00 2001 From: Luca Zeug Date: Thu, 26 Jan 2017 22:46:27 +0100 Subject: [PATCH 1/2] Allow for operators while parsing 'mist.solidity.version' --- modules/preloader/include/mistAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/preloader/include/mistAPI.js b/modules/preloader/include/mistAPI.js index 78cfbad3b..c38db3057 100644 --- a/modules/preloader/include/mistAPI.js +++ b/modules/preloader/include/mistAPI.js @@ -57,7 +57,7 @@ module.exports = () => { ipcRenderer.send('mistAPI_requestAccount'); }, solidity: { - version: packageJson.dependencies.solc, + version: String(packageJson.dependencies.solc).match(/\d+.\d+.\d+/)[0], }, sounds: { bip: function playSound() { From 646bfc90d98afa71633be923891dfa0691c95bde Mon Sep 17 00:00:00 2001 From: Luca Zeug Date: Fri, 27 Jan 2017 13:25:30 +0100 Subject: [PATCH 2/2] minor improvement in regex --- modules/preloader/include/mistAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/preloader/include/mistAPI.js b/modules/preloader/include/mistAPI.js index c38db3057..d931ac38a 100644 --- a/modules/preloader/include/mistAPI.js +++ b/modules/preloader/include/mistAPI.js @@ -57,7 +57,7 @@ module.exports = () => { ipcRenderer.send('mistAPI_requestAccount'); }, solidity: { - version: String(packageJson.dependencies.solc).match(/\d+.\d+.\d+/)[0], + version: String(packageJson.dependencies.solc).match(/\d+\.\d+\.\d+/)[0], }, sounds: { bip: function playSound() {