Browse Source

Merge pull request #335 from meriadec/master

Fix @ledgerhq/ledger-core imports
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
b53ee2f8b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      alix.js
  2. 2
      src/init-ledger-core.js
  3. 2
      src/internals/accounts/scanAccountsOnDevice.js

2
alix.js

@ -13,7 +13,7 @@ const {
getWallet,
syncAccount,
signTransaction,
} = require('ledger-core')
} = require('@ledgerhq/ledger-core')
async function getOrCreateWallet(currencyId) {
try {

2
src/init-ledger-core.js

@ -4,7 +4,7 @@
// instanciating wallet pool, but we don't need to do each everytime we
// require ledger-core, only the first time, so, eh.
const core = require('ledger-core')
const core = require('@ledgerhq/ledger-core')
let instanciated = false

2
src/internals/accounts/scanAccountsOnDevice.js

@ -15,7 +15,7 @@ import { getCryptoCurrencyById } from '@ledgerhq/live-common/lib/helpers/currenc
import type Transport from '@ledgerhq/hw-transport'
import type { AccountRaw } from '@ledgerhq/live-common/lib/types'
import type { NJSAccount, NJSOperation } from 'ledger-core/src/ledgercore_doc'
import type { NJSAccount, NJSOperation } from '@ledgerhq/ledger-core/src/ledgercore_doc'
type Props = {
devicePath: string,

Loading…
Cancel
Save