Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic 0x prefix to private key handling (#229)
* feat: add auto-prefix 0x to private key handling Previously, the code would throw an error if the WALLET_PRIVATE_KEY didn't start with '0x'. This update improves the user experience by automatically adding the '0x' prefix if missing, while maintaining the validation for the correct key length. The code will work seamlessly whether users provide the private key with or without the '0x' prefix, making it more flexible and user-friendly. * Remove rebundant error --------- Co-authored-by: Agustin Armellini Fischer <[email protected]>
- Loading branch information