Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Handle ABI decoding NULL for all data types #1587

Merged
merged 5 commits into from
Feb 6, 2019

Conversation

hysz
Copy link
Contributor

@hysz hysz commented Feb 6, 2019

Description

It was recently uncovered by @fabioberger that some clients use NULL (0x) to represent a return value of all zeroes (0x0..0). This PR implements a default value for each data type that is used do decode NULL.

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@hysz hysz force-pushed the fix/abiEncoder/DefaultTypesOnNullInput branch from 6181f18 to 023ea5b Compare February 6, 2019 02:10
@hysz hysz requested a review from fabioberger February 6, 2019 02:10
@coveralls
Copy link

coveralls commented Feb 6, 2019

Coverage Status

Coverage decreased (-0.02%) to 85.306% when pulling 3d7a635 on fix/abiEncoder/DefaultTypesOnNullInput into b5eb47f on development.

Copy link
Contributor

@fabioberger fabioberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repro'd my issue and made sure these changes fixed it, and it did! Thanks Greg!

@fabioberger fabioberger merged commit 8b5bb97 into development Feb 6, 2019
@fabioberger fabioberger deleted the fix/abiEncoder/DefaultTypesOnNullInput branch February 6, 2019 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants