merklejerk/send-tokens

Cannot read property 'toLowerCase' of undefined

MareoRaft opened this issue · 4 comments

How to reproduce:

~/Desktop/temp % send-tokens 0x2e98a6804e4b6c832ed0ca876a943abd3400b224 0x1e512fc62f01b6becf955b673a72085ca0e2ec2c 1
Cannot read property 'toLowerCase' of undefined

I'm guessing the issue is that the private key is missing, and it's trying to make the private key lowercase. If the private key is undefined, the error message should read "No private key inputted. A private key is mandatory." or similar.

I guess I'm striving for the most user-friendly error messages possible because I will be relaying such error messages to the users of my GUI.

pull request coming soon...

Fixed in ea2c6f8

Private key is not required. It will fall back to the node's wallet.

okay