CityOfZion / neo-python

Python Node and SDK for the NEO 2.x blockchain. For NEO 3.x go to our successor project neo-mamba
https://neo-python.readthedocs.io/en/latest/
MIT License
313 stars 189 forks source link

Fix parsing spaces #1013

Closed jseagrave21 closed 4 years ago

jseagrave21 commented 5 years ago

What current issue(s) does this address, or what feature is it adding? Addresses https://github.com/CityOfZion/neo-python/issues/1009 (see test_attribute_spacing)

How did you solve this problem? The input parser now merges strings until the count of "[" matches "]" or there is an IndexError (e.g. parsing a bytearray).

NOTE:

(see tests for examples)

How did you make sure your solution works? unittest and manual testing in privatenet

Are there any special changes in the code that we should be aware of? No

Please check the following, if applicable:

ixje commented 4 years ago

@hal0x2328 can you confirm this fixes your issue?

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.008%) to 85.313% when pulling 52f6807fdd14c83d66f89cc960dd62f6a0206e6d on jseagrave21:fix-parsing-spaces into 1d81ce3fb25e4714cb54d01c7600c836eda68ff8 on CityOfZion:development.

ixje commented 4 years ago

was waiting for input from hal, he gave it on slack. Thanks for taking care of this 👍