diff --git a/packages/solv/src/config/getSolanaCLI.ts b/packages/solv/src/config/getSolanaCLI.ts index 48031cb..daab3e4 100644 --- a/packages/solv/src/config/getSolanaCLI.ts +++ b/packages/solv/src/config/getSolanaCLI.ts @@ -8,8 +8,8 @@ export type SolanaCLI = typeof SOLANA_CLI | typeof AGAVE_CLI const getSolanaCLI = (): SolanaCLI => { try { const solanaVersion = getSolanaVersion() - const hasVersion20 = solanaVersion.includes('2.0') - if (hasVersion20) { + const hasVersion2 = solanaVersion.startsWith('2.') + if (hasVersion2) { return AGAVE_CLI } return SOLANA_CLI