Skip to content

Commit

Permalink
fix(node): node v12 support for is-indy-installed (#542)
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht authored Nov 22, 2021
1 parent 62eab74 commit 17e9157
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/node/bin/is-indy-installed.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/usr/bin/env node
/* eslint-disable no-console, @typescript-eslint/no-var-requires, no-undef */

const indy = require('indy-sdk')
const { randomUUID } = require('node:crypto')
const { createWallet, deleteWallet } = require('indy-sdk')

const uuid = randomUUID()
const uuid = Math.random() * 10000
const id = `test-wallet-id-${uuid}`

indy
.createWallet({ id }, { key: id })
.then(() => indy.deleteWallet({ id }, { key: id }))
createWallet({ id }, { key: id })
.then(() => deleteWallet({ id }, { key: id }))
.then(() => {
console.log('Libindy was installed correctly')
})
Expand Down

0 comments on commit 17e9157

Please sign in to comment.