Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foundry imporvements #1011

Merged
merged 16 commits into from
Dec 16, 2024
Merged
14 changes: 9 additions & 5 deletions packages/foundry/scripts-js/parseArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,19 @@ The default account (scaffold-eth-default) can only be used for localhost deploy
process.exit(0);
}

// Check for custom account on localhost
if (
process.env.ETH_KEYSTORE_ACCOUNT !== "scaffold-eth-default" &&
network === "localhost"
) {
console.log(
`\nWarning: Using ${process.env.ETH_KEYSTORE_ACCOUNT} keystore account on localhost.`,
`\nPlease enter the password for ${process.env.ETH_KEYSTORE_ACCOUNT} account\n`
);
console.log(`
⚠️ Warning: Using ${process.env.ETH_KEYSTORE_ACCOUNT} keystore account on localhost.

You can either:
1. Enter the password for ${process.env.ETH_KEYSTORE_ACCOUNT} account
OR
2. Use the default account by setting in .env and re-run the command:
ETH_KEYSTORE_ACCOUNT='scaffold-eth-default'
`);
technophile-04 marked this conversation as resolved.
Show resolved Hide resolved
}

// Set environment variables for the make command
Expand Down