msg prefix python

This commit is contained in:
Ethan Buchman
2015-12-19 21:31:53 -05:00
parent 2d9abb06ca
commit b7b4109413
3 changed files with 101 additions and 17 deletions

View File

@ -41,7 +41,7 @@ class CounterAppContext():
txByteArray = bytearray(txBytes)
if len(txBytes) >= 2 and txBytes[:2] == "0x":
txByteArray = hex2bytes(txBytes[2:])
txValue = decode_big_endian(BytesReader(txByteArray), len(txBytes))
txValue = decode_big_endian(BytesBuffer(txByteArray), len(txBytes))
if txValue != self.txCount:
return None, 1
self.txCount += 1