From 324c04a095444bfd771e43fa23b69fcef7e0a52f Mon Sep 17 00:00:00 2001 From: tuliomir Date: Wed, 13 Nov 2024 17:27:00 -0300 Subject: [PATCH] refactor: centralize version number --- src/constants.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/constants.js b/src/constants.js index afb53a52..35be4c14 100644 --- a/src/constants.js +++ b/src/constants.js @@ -4,6 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +import { version } from '../package.json'; export const BASE_URL = process.env.REACT_APP_BASE_URL || 'https://node.explorer.hathor.network/v1a/'; @@ -57,7 +58,7 @@ export const TESTNET_GENESIS_TX = [ '00975897028ceb037307327c953f5e7ad4d3f42402d71bd3d11ecb63ac39f01a', ]; -export const VERSION = '0.20.6'; +export const VERSION = version; export const MIN_API_VERSION = '0.33.0';