diff --git a/.changeset/witty-cows-sip.md b/.changeset/witty-cows-sip.md new file mode 100644 index 00000000..f93daa42 --- /dev/null +++ b/.changeset/witty-cows-sip.md @@ -0,0 +1,5 @@ +--- +'@epics-dao/solv': patch +--- + +fix - solv auto update notification diff --git a/packages/solv/src/cli/update/autoUpdate/index.ts b/packages/solv/src/cli/update/autoUpdate/index.ts index 2c2c6c6b..6f0f67f7 100644 --- a/packages/solv/src/cli/update/autoUpdate/index.ts +++ b/packages/solv/src/cli/update/autoUpdate/index.ts @@ -22,9 +22,7 @@ const autoUpdate = async (config: DefaultConfigType) => { const isMainnet = config.NETWORK === Network.MAINNET const { mainnetValidatorKey, testnetValidatorKey } = getAllKeyPaths() const validatorKey = isMainnet ? mainnetValidatorKey : testnetValidatorKey - const solanaVersion = isMainnet - ? CONFIG.MAINNET_SOLANA_VERSION - : CONFIG.TESTNET_SOLANA_VERSION + const solanaVersion = getSolvVersion() // Notify the user about the update let isUpdateRequired = isMainnet ? NODE_RESTART_REQUIRED_MAINNET diff --git a/packages/solv/src/config/config.ts b/packages/solv/src/config/config.ts index 3dfe3326..e57f0b38 100644 --- a/packages/solv/src/config/config.ts +++ b/packages/solv/src/config/config.ts @@ -54,7 +54,7 @@ export enum MAINNET_TYPES { // ⚠️ Please DO NOT forget to turn this to false if restart is not needed export const NODE_RESTART_REQUIRED_MAINNET = false -export const NODE_RESTART_REQUIRED_TESTNET = true +export const NODE_RESTART_REQUIRED_TESTNET = false export type CONFIG_TYPE = { ID: string