fix: update required relayer version

This commit is contained in:
Danil Kovtonyuk 2022-05-25 22:43:37 +10:00
parent dc5a72b85a
commit acf0f2e818

@ -237,17 +237,18 @@ export const actions = {
const getIsUpdated = () => { const getIsUpdated = () => {
const requiredMajor = hasEnabledLightProxy ? '5' : '4' const requiredMajor = hasEnabledLightProxy ? '5' : '4'
const { major, prerelease } = parseSemanticVersion(response.data.version) const { major, patch, prerelease } = parseSemanticVersion(response.data.version)
const isUpdatedMajor = major === requiredMajor const isUpdatedMajor = major === requiredMajor
if (isUpdatedMajor && prerelease && netId === 42161) { if (isUpdatedMajor && prerelease) {
const minimalBeta = 10 const minimalBeta = 11
const [betaVersion] = prerelease.split('.').slice(-1) const [betaVersion] = prerelease.split('.').slice(-1)
return Number(betaVersion) >= minimalBeta return Number(betaVersion) >= minimalBeta
} }
return isUpdatedMajor const minimalPatch = 4
return isUpdatedMajor && Number(patch) >= minimalPatch
} }
if (!getIsUpdated()) { if (!getIsUpdated()) {