|
@ -5,6 +5,7 @@ import type { AccountRaw, OperationRaw } from '@ledgerhq/live-common/lib/types' |
|
|
import Btc from '@ledgerhq/hw-app-btc' |
|
|
import Btc from '@ledgerhq/hw-app-btc' |
|
|
import { Observable } from 'rxjs' |
|
|
import { Observable } from 'rxjs' |
|
|
import { getCryptoCurrencyById } from '@ledgerhq/live-common/lib/helpers/currencies' |
|
|
import { getCryptoCurrencyById } from '@ledgerhq/live-common/lib/helpers/currencies' |
|
|
|
|
|
import { isSegwitAccount } from 'helpers/bip32' |
|
|
|
|
|
|
|
|
import withLibcore from 'helpers/withLibcore' |
|
|
import withLibcore from 'helpers/withLibcore' |
|
|
import { createCommand, Command } from 'helpers/ipc' |
|
|
import { createCommand, Command } from 'helpers/ipc' |
|
@ -158,7 +159,7 @@ export async function doSignAndBroadcast({ |
|
|
|
|
|
|
|
|
const WALLET_IDENTIFIER = await getWalletIdentifier({ |
|
|
const WALLET_IDENTIFIER = await getWalletIdentifier({ |
|
|
hwApp, |
|
|
hwApp, |
|
|
isSegwit: !!account.isSegwit, |
|
|
isSegwit: isSegwitAccount(account), |
|
|
currencyId: account.currencyId, |
|
|
currencyId: account.currencyId, |
|
|
devicePath: deviceId, |
|
|
devicePath: deviceId, |
|
|
}) |
|
|
}) |
|
@ -197,7 +198,7 @@ export async function doSignAndBroadcast({ |
|
|
transaction: builded, |
|
|
transaction: builded, |
|
|
sigHashType: parseInt(sigHashType, 16), |
|
|
sigHashType: parseInt(sigHashType, 16), |
|
|
supportsSegwit: !!currency.supportsSegwit, |
|
|
supportsSegwit: !!currency.supportsSegwit, |
|
|
isSegwit: !!account.isSegwit, |
|
|
isSegwit: isSegwitAccount(account), |
|
|
hasTimestamp, |
|
|
hasTimestamp, |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|