Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

refactor: incorporate eth-hash-to-cid module #19

Merged
merged 1 commit into from
Jul 2, 2018
Merged

refactor: incorporate eth-hash-to-cid module #19

merged 1 commit into from
Jul 2, 2018

Conversation

vmx
Copy link
Member

@vmx vmx commented Jul 2, 2018

The eth-hash-to-cid module is only used by this repository.
To lower the maintenance burden of having a separate module,
incorporate it into this repository.

This also opened up the chance to rename it to cidFromHash which
was already the name used internally.

The `eth-hash-to-cid` module is only used by this repository.
To lower the maintenance burden of having a separate module,
incorporate it into this repository.

This also opened up the chance to rename it to `cidFromHash` which
was already the name used internally.
@vmx vmx requested review from daviddias and kumavis July 2, 2018 10:11
@alanshaw alanshaw added the status/in-progress In progress label Jul 2, 2018
@richardschneider richardschneider mentioned this pull request Jul 2, 2018
@@ -1,6 +1,6 @@
'use strict'
const EthAccount = require('ethereumjs-account')
const cidFromHash = require('eth-hash-to-cid')
const cidFromHash = require('../util/cidFromHash')
Copy link
Member

Choose a reason for hiding this comment

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

please use the convention of - instead of Camel Case for filenames.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did it in favour of consistency. All files in util are camel case.

Copy link
Member

Choose a reason for hiding this comment

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

favor consistency across modules.

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally yes, but in this case favour local consistency. I've opened an issue for global consistency: #20

@vmx
Copy link
Member Author

vmx commented Jul 2, 2018

Addressed the review comment in a different way. Hence I dare to merge it.

@vmx vmx merged commit 156e8cf into master Jul 2, 2018
@vmx vmx deleted the cidfromhash branch July 2, 2018 12:28
@alanshaw alanshaw removed the status/in-progress In progress label Jul 2, 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