fix semver check

pull/4896/head
yann300 5 months ago committed by Aniket
parent e1b4657f6d
commit e381c09e33
  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