Skip to content

Commit

Permalink
fix await
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck LeDuc Díaz committed Apr 20, 2020
1 parent 861ceaa commit 50fcc1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lorena-ssi/lorena-sdk",
"version": "1.1.0",
"version": "1.1.1",
"description": "Lorena SDK",
"author": "Alex Puig <alex@caelumlabs.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Lorena extends EventEmitter {
* @returns {boolean} success
*/
async lock (password) {
const result = this.wallet.lock(password)
const result = await this.wallet.lock(password)
if (result) {
this.emit('locked', password)
}
Expand All @@ -89,7 +89,7 @@ export default class Lorena extends EventEmitter {
* @returns {boolean} success
*/
async unlock (password) {
const result = this.wallet.unlock(password)
const result = await this.wallet.unlock(password)
if (result) {
this.emit('unlocked', password)
}
Expand Down

0 comments on commit 50fcc1e

Please sign in to comment.