Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderer committed Jul 27, 2017
1 parent f0fbf4a commit ed4f458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ module.exports = class Hypervisor {
const container = this._containerTypes[state.type]
let code

// checks if the code stored in the state is an array and that the elements
// are merkle link
if (state.code && state.code[0]['/']) {
await this.graph.tree(state.code, 1)
code = state.code.map(a => a['/']).reduce((a, b) => a + b)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"bn.js": "^4.11.6",
"chunk": "0.0.2",
"ipld-graph-builder": "1.2.2",
"primea-abstract-container": "0.0.1",
"primea-abstract-container": "0.0.2",
"primea-message": "0.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit ed4f458

Please sign in to comment.