From 8a2aeec6196970f81d4203b164e66200bffdbf99 Mon Sep 17 00:00:00 2001 From: Anton Simernia Date: Wed, 18 May 2016 10:35:44 +0300 Subject: [PATCH] fix quentity_decoder issue --- .gitignore | 2 ++ pyethapp/jsonrpc.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index daaabb75..d143b428 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,5 @@ docs/_build # virtualenv .venv + +/rpc-tests diff --git a/pyethapp/jsonrpc.py b/pyethapp/jsonrpc.py index 652e416b..1706b808 100644 --- a/pyethapp/jsonrpc.py +++ b/pyethapp/jsonrpc.py @@ -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