Skip to content

Commit

Permalink
save credential
Browse files Browse the repository at this point in the history
  • Loading branch information
javisantos committed Jul 27, 2020
1 parent 5a2d125 commit 6286c21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/sdk/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ module.exports = class Lorena extends EventEmitter {
} else {
var msgReceived = this.comms.unboxMessage(msg.value.msg, thread.sender.box.secretKey, thread.publicKey)
console.log('RECEIVED', msgReceived.msg.payload)
this.wallet.add('credentials', {
...msgReceived.msg.payload[0].signedCredential
})
}
// this.onMsgNotify(msg.value)
break
Expand Down
2 changes: 1 addition & 1 deletion packages/terminal/src/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const term = {
terminal('\n')
},
json: (json = '') => {
console.log(util.inspect(json, { colors: true }))
console.log(util.inspect(json, { depth: null, colors: true }))
},
error: (text) => { terminal.red(text + '\n') },
lorena: (env = '') => terminal.cyan('\nlor' + env + '# '),
Expand Down

0 comments on commit 6286c21

Please sign in to comment.