Skip to content

Conversation

@yedeyu
Copy link

@yedeyu yedeyu commented Dec 2, 2025

Added private key parameter to the swap command example to match the style of the other parts in the tutorial and to avoid the following error:

Failed to retrieve private key: Private key not found
Error during depositAndCall to EVM: Failed to retrieve private key: Private key not found

Summary by CodeRabbit

  • Documentation
    • Updated Swap tutorial to document the --private-key flag for the cross-chain deposit command, enabling developers to directly provide sender credentials during cross-chain operations.

✏️ Tip: You can customize this high-level summary in your review settings.

Added private key parameter to the swap command example.
@yedeyu yedeyu requested review from a team as code owners December 2, 2025 00:09
@vercel
Copy link

vercel bot commented Dec 2, 2025

@yedeyu is attempting to deploy a commit to the Zeta Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 2, 2025

📝 Walkthrough

Walkthrough

This change updates the Swap tutorial documentation to include the --private-key flag in a cross-chain command example, allowing users to directly specify a private key for deposit operations.

Changes

Cohort / File(s) Summary
Documentation Update
src/pages/developers/tutorials/swap.mdx
Added --private-key $PRIVATE_KEY flag to the npx zetachain evm deposit-and-call command example

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Verify the flag syntax and parameter placement align with the CLI tool's current behavior
  • Confirm the environment variable reference $PRIVATE_KEY is consistent with other tutorial examples in the documentation

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title directly and accurately describes the primary change: adding a private key parameter to the evm deposit-and-call command.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between b2b6791 and d72318f.

📒 Files selected for processing (1)
  • src/pages/developers/tutorials/swap.mdx (1 hunks)
🔇 Additional comments (1)
src/pages/developers/tutorials/swap.mdx (1)

309-316: Consistency improvement: private-key flag now matches other examples in the tutorial.

The addition of --private-key $PRIVATE_KEY resolves the inconsistency between the testnet evm deposit-and-call command (shown here) and the localnet variant (lines 496–504), which already included the flag. This change also aligns the EVM deposit-and-call pattern with other similar commands in the file (Solana and Bitcoin deposit-and-call), improving tutorial consistency and preventing the "Private key not found" error users would otherwise encounter.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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