|
|
@ -80,9 +80,9 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
const tmp: RegExpExecArray | null = /^(\d+.\d+.\d+)/.exec(version) |
|
|
|
const tmp: RegExpExecArray | null = /^(\d+.\d+.\d+)/.exec(version) |
|
|
|
return tmp ? tmp[1] : version |
|
|
|
return tmp ? tmp[1] : version |
|
|
|
} |
|
|
|
} |
|
|
|
if (version != '' && !semver.gt(truncateVersion(version), '0.4.12')) { |
|
|
|
if (version && version != '' && !semver.gt(truncateVersion(version), '0.4.12')) { |
|
|
|
setIsSupportedVersion(false) |
|
|
|
setIsSupportedVersion(false) |
|
|
|
setRunButtonTitle('Sselect Solidity compiler version greater than 0.4.12.') |
|
|
|
setRunButtonTitle('Select Solidity compiler version greater than 0.4.12.') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setIsSupportedVersion(true) |
|
|
|
setIsSupportedVersion(true) |
|
|
|
setRunButtonTitle('Run static analysis') |
|
|
|
setRunButtonTitle('Run static analysis') |
|
|
|