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

Commit 8a2aeec

Browse files
committed
fix quentity_decoder issue
1 parent 3468639 commit 8a2aeec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ docs/_build
4646

4747
# virtualenv
4848
.venv
49+
50+
/rpc-tests

pyethapp/jsonrpc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ def quantity_decoder(data):
345345
success = False
346346
elif not data.startswith('0x'):
347347
success = False # must start with 0x prefix
348-
elif len(data) > 3 and data[2] == '0':
349-
success = False # must not have leading zeros (except `0x0`)
350348
else:
351349
data = data[2:]
352350
# ensure even length

0 commit comments

Comments
 (0)