|
|
@ -1,5 +1,6 @@ |
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
import React, { Fragment, useEffect, useReducer, useState } from 'react' |
|
|
|
import React, { Fragment, useEffect, useReducer, useState } from 'react' |
|
|
|
|
|
|
|
import semver from 'semver' |
|
|
|
import { FormattedMessage } from 'react-intl' |
|
|
|
import { FormattedMessage } from 'react-intl' |
|
|
|
import { ModalDialog } from '@remix-ui/modal-dialog' |
|
|
|
import { ModalDialog } from '@remix-ui/modal-dialog' |
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
@ -85,8 +86,9 @@ export function RunTabUI(props: RunTabProps) { |
|
|
|
const getVersion = () => { |
|
|
|
const getVersion = () => { |
|
|
|
let version = '0.8.25' |
|
|
|
let version = '0.8.25' |
|
|
|
try { |
|
|
|
try { |
|
|
|
version = window.location.href.split('=')[5].split('+')[0].split('-')[1].slice(1) ?? '0.8.25' |
|
|
|
const regVersion = window.location.href.match(/soljson-v(.*)\+commit/g) |
|
|
|
if (parseFloat(version) < 0.6) { |
|
|
|
if (regVersion && regVersion[1]) version = regVersion[1] |
|
|
|
|
|
|
|
if (semver.lt(version, '0.6')) { |
|
|
|
setSolcVersion({ version: version, canReceive: false }) |
|
|
|
setSolcVersion({ version: version, canReceive: false }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setSolcVersion({ version: version, canReceive: true }) |
|
|
|
setSolcVersion({ version: version, canReceive: true }) |
|
|
|