Browse Source

Clean log

master
meriadec 7 years ago
parent
commit
b2f7b06604
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 6
      alix.js
  2. 6
      src/internals/usb/wallet/scanAccountsOnDevice.js

6
alix.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()

6
src/internals/usb/wallet/scanAccountsOnDevice.js

@ -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,
}
})

Loading…
Cancel
Save