Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename __hasWitnesses -> hasWitnesses, and add tests #718

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

afk11
Copy link
Contributor

@afk11 afk11 commented Dec 7, 2016

Related issue: #703

}

it('detects if the transaction has witnesses: ' + (witnesses ? 'true' : 'false'), function () {
assert.strictEqual(Transaction.fromHex(hex).hasWitnesses(), witnesses)
Copy link
Contributor

Choose a reason for hiding this comment

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

couldn't it just be

assert.strictEqual(Transaction.fromHex(hex).hasWitnesses(), !!f.whex)

?

Copy link
Contributor Author

@afk11 afk11 Dec 7, 2016

Choose a reason for hiding this comment

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

Yep could be shortened, done :)

@dcousens
Copy link
Contributor

dcousens commented Dec 7, 2016

ACK, waiting on travis

@afk11 afk11 added the feature label Dec 7, 2016
@afk11
Copy link
Contributor Author

afk11 commented Dec 7, 2016

Just one integration test failed, will restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants