Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
fix quentity_decoder issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anton44eg committed May 18, 2016
1 parent 3468639 commit 8a2aeec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ docs/_build

# virtualenv
.venv

/rpc-tests
2 changes: 0 additions & 2 deletions pyethapp/jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ def quantity_decoder(data):
success = False
elif not data.startswith('0x'):
success = False # must start with 0x prefix
elif len(data) > 3 and data[2] == '0':
success = False # must not have leading zeros (except `0x0`)
else:
data = data[2:]
# ensure even length
Expand Down

0 comments on commit 8a2aeec

Please sign in to comment.