meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
8 additions and
4 deletions
-
alix.js
-
src/internals/usb/wallet/scanAccountsOnDevice.js
|
|
@ -79,7 +79,7 @@ waitForDevices(async device => { |
|
|
|
const account = CREATE ? await createAccount(wallet, hwApp) : await wallet.getAccount(0) |
|
|
|
|
|
|
|
console.log(`> Sync account`) |
|
|
|
if (true || CREATE) { |
|
|
|
if (CREATE) { |
|
|
|
await syncAccount(account) |
|
|
|
} |
|
|
|
|
|
|
@ -125,6 +125,10 @@ async function createTransaction(wallet, account) { |
|
|
|
const bitcoinLikeAccount = account.asBitcoinLikeAccount() |
|
|
|
const walletCurrency = wallet.getCurrency() |
|
|
|
const amount = createAmount(walletCurrency, 10000) |
|
|
|
|
|
|
|
console.log(`--------------------------------`) |
|
|
|
console.log(amount.toLong()) |
|
|
|
console.log(`-----------------after `) |
|
|
|
const fees = createAmount(walletCurrency, 1000) |
|
|
|
|
|
|
|
const transactionBuilder = bitcoinLikeAccount.buildTransaction() |
|
|
|
|
|
@ -183,12 +183,12 @@ async function buildRawAccount({ |
|
|
|
address: '', |
|
|
|
senders: op.getSenders(), |
|
|
|
recipients: op.getRecipients(), |
|
|
|
// TODO: find why NJSAmount not working
|
|
|
|
// amount: op.getAmount().toInt(),
|
|
|
|
amount: 0, |
|
|
|
blockHeight: op.getBlockHeight(), |
|
|
|
accountId: xpub, |
|
|
|
date: op.getDate().toISOString(), |
|
|
|
|
|
|
|
// amount: op.getAmount().toLong(),
|
|
|
|
amount: 0, |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|