Adds support for unmarshaling bytes32 type (#680)
* Adds support for unmarshaling bytes32 type * Review fixes
This commit is contained in:
@@ -376,6 +376,9 @@ class ABI(object):
|
||||
dyn_offset = 4 + get_uint(256,offset)
|
||||
size = get_uint(256, dyn_offset)
|
||||
return data[dyn_offset+32:dyn_offset+32+size], offset+4
|
||||
elif ty.startswith('bytes') and 0 <= int(ty[5:]) <= 32:
|
||||
size = int(ty[5:])
|
||||
return data[offset:offset+size], offset+32
|
||||
else:
|
||||
raise NotImplementedError(ty)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user