From 79e91df6632556cdb2fadc5c83620f327c942331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Sun, 20 May 2018 17:06:02 +0200 Subject: [PATCH] minor fix --- src/internals/devices/ensureDeviceApp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internals/devices/ensureDeviceApp.js b/src/internals/devices/ensureDeviceApp.js index e5284b52..3cbdf5a9 100644 --- a/src/internals/devices/ensureDeviceApp.js +++ b/src/internals/devices/ensureDeviceApp.js @@ -4,7 +4,7 @@ import invariant from 'invariant' import CommNodeHid from '@ledgerhq/hw-transport-node-hid' import type Transport from '@ledgerhq/hw-transport' import type { IPCSend } from 'types/electron' -import getAdressFromCurrency from './getAddressForCurrency' +import getAddressForCurrency from './getAddressForCurrency' export default async ( send: IPCSend, @@ -22,9 +22,9 @@ export default async ( }, ) => { try { - invariant(currencyId, 'currencyId is defined') + invariant(currencyId, 'currencyId "%s" not defined', currencyId) const transport: Transport<*> = await CommNodeHid.open(devicePath) - const resolver = getAdressFromCurrency(currencyId) + const resolver = getAddressForCurrency(currencyId) const address = await resolver(transport, currencyId, accountPath, options) if (accountPath && accountAddress && address !== accountAddress) { throw new Error('Account address is different than device address')