Skip to content

Conversation

@casks-mutters
Copy link
Owner

Summary

The script currently does not perform validation on the --rpc argument (URL) or --private-key. If the RPC URL or private key is invalid, the script may fail with unclear errors.

Proposed Changes

  • Add validation to check if --rpc is a valid URL (using urllib or Web3).
  • Ensure the --private-key is in the correct hexadecimal format, and show an error message if it is invalid.

Motivation

  • Helps users avoid misconfiguration errors.
  • Improves error handling and user feedback.

## Summary

The script currently does not perform validation on the `--rpc` argument (URL) or `--private-key`. If the RPC URL or private key is invalid, the script may fail with unclear errors.

## Proposed Changes

- Add validation to check if `--rpc` is a valid URL (using `urllib` or `Web3`).
- Ensure the `--private-key` is in the correct hexadecimal format, and show an error message if it is invalid.

## Motivation

- Helps users avoid misconfiguration errors.  
- Improves error handling and user feedback.
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.

2 participants