fix semver check

pull/5370/head
yann300 5 months ago committed by Aniket
parent d3d570ddcc
commit b9d5be8cd3
  1. 2
      libs/remix-ui/run-tab/src/lib/run-tab.tsx

@ -88,7 +88,7 @@ export function RunTabUI(props: RunTabProps) {
try { try {
const regVersion = window.location.href.match(/soljson-v(.*)\+commit/g) const regVersion = window.location.href.match(/soljson-v(.*)\+commit/g)
if (regVersion && regVersion[1]) version = regVersion[1] if (regVersion && regVersion[1]) version = regVersion[1]
if (semver.lt(version, '0.6')) { if (semver.lt(version, '0.6.0')) {
setSolcVersion({ version: version, canReceive: false }) setSolcVersion({ version: version, canReceive: false })
} else { } else {
setSolcVersion({ version: version, canReceive: true }) setSolcVersion({ version: version, canReceive: true })

Loading…
Cancel
Save