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
consterrorMessage=`Deployer account is not defined. \`ACCOUNT_ADDRESS_${networkName.toUpperCase()}\` or \`PRIVATE_KEY_${networkName.toUpperCase()}\` is missing from \`.env\`.`;
516
-
console.error(red(errorMessage));
626
+
consterrorMessage=`❌ Deployer account is not defined. \`ACCOUNT_ADDRESS_${networkName.toUpperCase()}\` or \`PRIVATE_KEY_${networkName.toUpperCase()}\` is missing from \`.env\`.\n Please add both environment variables to your \`.env\` file.`;
517
627
thrownewError(errorMessage);
518
628
}
519
629
};
520
630
521
631
constassertRpcNetworkActive=async()=>{
522
632
if(!provider){
523
-
consterrorMessage=`RPC provider is not defined. \`RPC_URL_${networkName.toUpperCase()}\` is missing from \`.env\`.`;
524
-
console.error(red(errorMessage));
633
+
consterrorMessage=`❌ RPC provider is not defined. \`RPC_URL_${networkName.toUpperCase()}\` is missing from \`.env\`.`;
consterrorMessage=`❌ RPC connection failed. Unable to connect to ${networkName} network.\n Please check your \`RPC_URL_${networkName.toUpperCase()}\` in \`.env\` and ensure the RPC endpoint is accessible.`;
consterrorMessage=`Deployer account at \`${deployer.address}\` hasn't been deployed on ${networkName} network.`;
568
-
console.error(red(errorMessage),e);
693
+
consterrorMessage=`❌ Deployer account at \`${deployer.address}\` hasn't been deployed on ${networkName} network.\n Please deploy your account first or use a different account address.`;
694
+
569
695
thrownewError(errorMessage);
570
696
}
571
697
572
-
consterrorMessage=
573
-
"Unable to verify signature from the deployer account. Possible causes: network latency, RPC timeout.";
consterrorMessage=`❌ Unable to verify deployer signature: Request timeout.\n Please try again or check your network connection.`;
712
+
713
+
thrownewError(errorMessage);
714
+
}
715
+
716
+
consterrorMessage=`❌ Unable to verify signature from the deployer account.\n Possible causes: network latency, RPC timeout, or invalid account configuration.`;
717
+
575
718
thrownewError(errorMessage);
576
719
}
577
720
578
721
if(!isValidSig){
579
-
consterrorMessage=`Invalid signature. \`ACCOUNT_ADDRESS_${networkName.toUpperCase()}\` is not match with \`PRIVATE_KEY_${networkName.toUpperCase()}\`.`;
580
-
console.error(red(errorMessage));
722
+
consterrorMessage=`❌ Invalid signature. \`ACCOUNT_ADDRESS_${networkName.toUpperCase()}\` does not match \`PRIVATE_KEY_${networkName.toUpperCase()}\`.\n Please verify that your account address and private key are correctly configured in \`.env\`.`;
0 commit comments