Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[io_limbs] handle
unmarshal
for sources longer, but smaller
If a given source `src` is given to `unmarshal` where the most significant bytes are all zero beyond the size that fits into the destination BigInt, we still return a successful parse. Previously we would just return false whenever we found more bytes than can possibly fit (this leads to issues with e.g. EVM precompiles tests, which come as strings that are longer). Note: We can probably do the all zero check in a better way (i.e. using the fact that endianness does not matter and just compare all relevant bytes, but not sure about the most elegant way to do that, taking the dynamic sizes into account)
- Loading branch information