Skip to content

Commit

Permalink
Merge pull request #4 from PencilBow/master
Browse files Browse the repository at this point in the history
make address lowercase
check key length
  • Loading branch information
sammchardy committed Jan 23, 2018
2 parents c9efc92 + 15ed9a2 commit 4f6e141
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion idex/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ def set_wallet_address(self, address, private_key=None):
:returns: nothing
"""
self._wallet_address = address
self._wallet_address = address.lower()
nonce_res = self.get_my_next_nonce()
self._start_nonce = nonce_res['nonce']
if private_key:
assert len(private_key) == 66, "Invalid private key. Forgot 0x in front?"
self._private_key = private_key

def get_wallet_address(self):
Expand Down

0 comments on commit 4f6e141

Please sign in to comment.