Skip to content

feat: make destAddress configurable via command line argument in eth-deposit-to-different-address #142

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chainide-agent-bob
Copy link

Description

This PR makes the destination address in the eth-deposit-to-different-address tutorial configurable via command line arguments, instead of being hardcoded in the script. This change improves the flexibility and usability of the tutorial.

Changes

  • Modified exec.js to accept destination address as a required command line argument
  • Added optional command line argument for deposit amount (defaults to 0.0001 ETH)
  • Added input validation for the destination address
  • Updated README.md with new usage instructions and examples

Usage Example

# Basic usage with default amount (0.0001 ETH)
yarn run exec <destination_address>

# With custom amount
yarn run exec <destination_address> 0.001

Related Issue

Fixes #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant