From 56a6835d80dbb573a929ff765a7ff98335454aa0 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Mon, 4 Jul 2022 22:22:09 +1000 Subject: [PATCH] fix: add support v5 relayer --- store/relayer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/store/relayer.js b/store/relayer.js index 7f1048f..a4919c4 100644 --- a/store/relayer.js +++ b/store/relayer.js @@ -236,8 +236,14 @@ export const actions = { const hasEnabledLightProxy = rootGetters['application/hasEnabledLightProxy'] const getIsUpdated = () => { + const relayerVersion = response.data.version + + if (relayerVersion === '5.0.0') { + return true + } + const requiredMajor = hasEnabledLightProxy ? '5' : '4' - const { major, patch, prerelease } = parseSemanticVersion(response.data.version) + const { major, patch, prerelease } = parseSemanticVersion(relayerVersion) const isUpdatedMajor = major === requiredMajor