Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Fix circular dependency in lisk-cryptography - Closes 775 #778

Merged

Conversation

mitsuaki-u
Copy link
Contributor

What was the problem?

Circular dependency in lisk-cryptography, specifically the "hexToBuffer" function in convert module being used in hash module.

How did I fix it?

Separated buffer specific logic into a new buffer module along with the corresponding tests.

How to test it?

Install, build, lint, test etc.

Review checklist

Copy link
Contributor

@willclarktech willclarktech left a comment

Choose a reason for hiding this comment

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

One test suite nesting issue, and one versioning concern.

packages/lisk-cryptography/src/index.js Show resolved Hide resolved
packages/lisk-cryptography/test/buffer.js Outdated Show resolved Hide resolved
@shuse2 shuse2 changed the title 🐛 Fix circular dependency in lisk-cryptography Fix circular dependency in lisk-cryptography - Closes 775 Sep 7, 2018
shuse2
shuse2 previously approved these changes Sep 7, 2018
@willclarktech willclarktech merged commit 401452b into development Sep 7, 2018
@willclarktech willclarktech deleted the 775-remove-circular-dependency-in-cryptography branch September 7, 2018 13:22
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