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

feat(cli): add trace #999

Merged
merged 9 commits into from
Jun 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into dk1a/trace
alvrs committed Jun 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 3f6f27f1ac596796fd1a962e4191656f064ff9c2
7 changes: 6 additions & 1 deletion packages/cli/src/utils/deployHandler.ts
Original file line number Diff line number Diff line change
@@ -52,7 +52,12 @@ export async function deployHandler(args: DeployOptions) {
if (printConfig) console.log(chalk.green("\nResolved config:\n"), JSON.stringify(mudConfig, null, 2));

const privateKey = process.env.PRIVATE_KEY;
if (!privateKey) throw new MUDError("Missing PRIVATE_KEY environment variable");
if (!privateKey)
throw new MUDError(
`Missing PRIVATE_KEY environment variable.
Run 'echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" > .env'
in your contracts directory to use the default anvil private key.`
);
const deploymentInfo = await deploy(mudConfig, existingContractNames, { ...args, rpc, privateKey });

if (args.saveDeployment) {
You are viewing a condensed version of this merge commit. You can view the full changes here.