Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 499cd9e

Browse files
tcmedaviddias
authored andcommitted
fixes example should get the whole tree (#163)
* fixes example should get the whole tree * dag.tree returns the value (not result.value)
1 parent e7a21c5 commit 499cd9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPEC/DAG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ function errOrLog(err, result) {
148148
if (err) {
149149
console.error('error: ' + err)
150150
} else {
151-
console.log(result.value)
151+
console.log(result)
152152
}
153153
}
154154

155-
ipfs.dag.tree('zdpuAmtur968yprkhG9N5Zxn6MFVoqAWBbhUAkNLJs2UtkTq5/a', errOrLog)
155+
ipfs.dag.tree('zdpuAmtur968yprkhG9N5Zxn6MFVoqAWBbhUAkNLJs2UtkTq5', errOrLog)
156156
// Logs:
157157
// a
158158
// b

0 commit comments

Comments
 (0)