This repository was archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow adding links from DAGNode.Links
`DAGNode.Links` converts `DAGLink` objects into vanilla JS objects. `DAGNode.addLink` accepts vanilla JS objects as links but looks for different properties from the ones the return value of `DAGNode.Links` have (e.g. `.Hash` vs `.cid`, etc).. This PR corrects the behaviour to look for those properties names and adds a test.
- Loading branch information
1 parent
cfc97f9
commit a5d300f
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters