Skip to content

Conversation

@frangio
Copy link
Contributor

@frangio frangio commented Aug 17, 2018

Fixes #1217.

@frangio frangio requested a review from nventuro August 17, 2018 18:05
};

describeBurn('for entire balance', initialSupply);
describeBurn('for less amount than balance', new BigNumber(50));
Copy link
Contributor

Choose a reason for hiding this comment

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

initialSupply.sub(1)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I can do that, but can you explain the reasoning?

Copy link
Contributor

Choose a reason for hiding this comment

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

To prevent having to keep those values in sync: it doesn't matter what the actual amounts are, only that this one is lower, and the only way to verify that is to go check against the other one.

Additionally, the .sub thing makes it crystal clear what it should be less than.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug contracts Smart contract code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants