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

Primitives tests - addresses #291

Merged
merged 4 commits into from
Oct 19, 2017
Merged

Primitives tests - addresses #291

merged 4 commits into from
Oct 19, 2017

Conversation

tuxcanfly
Copy link
Member

@tuxcanfly tuxcanfly commented Aug 23, 2017

Started adding tests for address. WIP.

const p2pkh = Buffer.from(raw, 'hex');
const addr = Address.fromPubkeyhash(p2pkh);
const expectedAddr = '1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX';
assert(addr, expectedAddr);
Copy link
Member

Choose a reason for hiding this comment

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

Should be something like assert.strictEqual(addr.toString(), expectedAddr);.

@bucko13 bucko13 added the tests label Oct 12, 2017
@bucko13
Copy link
Contributor

bucko13 commented Oct 12, 2017

@tuxcanfly is this still WIP?

@tuxcanfly
Copy link
Member Author

@bucko13 need to add a couple of tests for helper methods, will add those today.

@chjj chjj merged commit 783f57e into bcoin-org:master Oct 19, 2017
@chjj
Copy link
Member

chjj commented Oct 19, 2017

Merging for now.

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

Successfully merging this pull request may close these issues.

3 participants