Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Conversation

@willemolding
Copy link
Contributor

I found a bug in the anchors zome that prevents the creation of a new anchor type once the root anchor has been committed.

This can be seen in the newly added test case in anchors.json. The first new anchor type passes but fails creating a second type. This was not tested for previously.

This bug was caused by an error in anchors.js where the variable rootAnchorTypeHash was set to the response of a get() rather than the hash itself. This was then used as the base of a link, causing an error. This only occurrerd in the conditional branch where the root anchor had already been created.

Bug is fixed and an additional test case included.

@zippy zippy merged commit 4eef2d6 into holochain:develop May 25, 2018
@willemolding willemolding deleted the fix-multiple-anchors-bug branch May 26, 2018 11:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants