-
Notifications
You must be signed in to change notification settings - Fork 246
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
Expose APMNamehash #310
Expose APMNamehash #310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is APM_NODE
being used in dao-kits? Good question about apmNameHash
too. So, is APM_NODE
anywhere else? (Otherwise, what's the point of separating it?)
I see, thanks. Then I would expose |
test/mocks/APMNamehash.sol
Outdated
|
||
contract APMNamehash { | ||
bytes32 constant public ETH_NODE = keccak256(bytes32(0), keccak256("eth")); | ||
bytes32 constant public APM_NODE = keccak256(ETH_NODE, keccak256("aragonpm")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this one inside APMNamehash
and avoid the need for APMConstants
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See e3637df
Exposes
APMNamehash.sol
to let packages like the DAO kits to get an APM namehash without reimplementing it.