Skip to content

fix(docs): correct contracts deploy command to pass PRIVKEY and skip simulation#39

Open
memosr wants to merge 1 commit into
SeismicSystems:mainfrom
memosr:fix/readme-deploy-command
Open

fix(docs): correct contracts deploy command to pass PRIVKEY and skip simulation#39
memosr wants to merge 1 commit into
SeismicSystems:mainfrom
memosr:fix/readme-deploy-command

Conversation

@memosr

@memosr memosr commented Jul 4, 2026

Copy link
Copy Markdown

Problem

The deploy instructions in contracts/README.md run source .env then
sforge script ... --broadcast. But .env.example doesn't export its
vars, so PRIVKEY never reaches the subprocess and vm.envUint("PRIVKEY")
reverts. The command also omits --skip-simulation, which the main README's
troubleshooting section flags as required.

Fix

  • Prefix the command with PRIVKEY="$PRIVKEY".
  • Add --skip-simulation.
  • This matches the root package.json contract:deploy script.

Verification

- Prefix the sforge script invocation with PRIVKEY="$PRIVKEY": source .env
  does not export variables, so vm.envUint("PRIVKEY") in the deploy script
  fails with the previous instructions.
- Add --skip-simulation to match the root contract:deploy script and the
  root README troubleshooting guidance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant