Skip to content

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

Development

Successfully merging this pull request may close these issues.

destAddress in the eth-deposit-to-different-address could be an argument to pass to the script instead of being hardcoded

1 participant