From acf0f2e81871c8a3a370eb88f135625b9cb8a15c Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Wed, 25 May 2022 22:43:37 +1000 Subject: [PATCH] fix: update required relayer version --- store/relayer.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/store/relayer.js b/store/relayer.js index a60bc5a..7683834 100644 --- a/store/relayer.js +++ b/store/relayer.js @@ -237,17 +237,18 @@ export const actions = { const getIsUpdated = () => { const requiredMajor = hasEnabledLightProxy ? '5' : '4' - const { major, prerelease } = parseSemanticVersion(response.data.version) + const { major, patch, prerelease } = parseSemanticVersion(response.data.version) const isUpdatedMajor = major === requiredMajor - if (isUpdatedMajor && prerelease && netId === 42161) { - const minimalBeta = 10 + if (isUpdatedMajor && prerelease) { + const minimalBeta = 11 const [betaVersion] = prerelease.split('.').slice(-1) return Number(betaVersion) >= minimalBeta } - return isUpdatedMajor + const minimalPatch = 4 + return isUpdatedMajor && Number(patch) >= minimalPatch } if (!getIsUpdated()) {