fix: add support v5 relayer

This commit is contained in:
Danil Kovtonyuk 2022-07-04 22:22:09 +10:00
parent 6125b3b2af
commit 56a6835d80
No known key found for this signature in database
GPG Key ID: E72A919BF08C3746

View File

@ -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