You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`🚀 Aptos CLI version ${version} is compatible.`)
342
+
if(version!==MIN_VERSION){
343
+
console.log(
344
+
`\x1b[33m⚠️ Warning: You are deploying to Aptos chain but your Aptos CLI version is set to "${version}".\n\n\tOur recommended and tested version is ${MIN_VERSION}. Using other versions is at your own risk and may result in unexpected behavior.\x1b[0m`
345
+
)
346
+
awaitpromptVersionWarningConfirmation()
347
+
}
326
348
}else{
327
349
thrownewError(`❌ Aptos CLI version too old. Required: ${MIN_VERSION} or newer, Found: ${version}`)
console.log(`🚀 Aptos CLI version ${version} is compatible.`)
356
+
if(version!=='3.5.0'){
357
+
console.log(
358
+
`\x1b[33m⚠️ Warning: You are deploying to Movement chain but your Aptos CLI version is set to "${version}".\n\n\tOur recommended and tested version is 3.5.0. Using other versions is at your own risk and may result in unexpected behavior.\x1b[0m`
359
+
)
360
+
awaitpromptVersionWarningConfirmation()
361
+
}
334
362
}else{
335
363
thrownewError(`❌ Aptos CLI version too new. Required: ${MAX_VERSION} or older, Found: ${version}`)
336
364
}
@@ -351,28 +379,34 @@ export async function checkInitiaCLIVersion(): Promise<void> {
0 commit comments