Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Ensure not-null binary before adding instance #1084

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

jleeh
Copy link
Contributor

@jleeh jleeh commented Jul 4, 2018

This is for issue #1051

Simple check that ensures binary is not equal to "0x0" before searching for it and adding the instance to an address.


return context;
return context;
Copy link

Choose a reason for hiding this comment

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

Surely you need to return context regardless of if an instance is emitted?

This will break method chaining if it returns null

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think those return values are actually used... I think returning undefined is fine.

Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for opening this, and thanks to both you and @HarryR for helping figure this out!


return context;
return context;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think those return values are actually used... I think returning undefined is fine.

@gnidan gnidan merged commit bd41a1a into trufflesuite:develop Jul 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants