Browse Source

Merge pull request #1126 from meriadec/fix/1007-correct-txs-filter

Correct Ripple txs filter
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
4bea418866
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/bridge/RippleJSBridge.js

4
src/bridge/RippleJSBridge.js

@ -192,11 +192,9 @@ type Tx = {
const txToOperation = (account: Account) => ({
id,
sequence,
type: txType,
outcome: { fee, deliveredAmount, ledgerVersion, timestamp },
specification: { source, destination },
}: Tx): ?Operation => {
if (txType === 'trustline') return null
const type = source.address === account.freshAddress ? 'OUT' : 'IN'
let value = deliveredAmount ? parseAPICurrencyObject(deliveredAmount) : 0
const feeValue = parseAPIValue(fee)
@ -318,6 +316,7 @@ const RippleJSBridge: WalletBridge<Transaction> = {
const transactions = await api.getTransactions(address, {
minLedgerVersion,
maxLedgerVersion,
types: ['payment'],
})
if (finished) return
@ -406,6 +405,7 @@ const RippleJSBridge: WalletBridge<Transaction> = {
minLedgerVersion,
),
maxLedgerVersion,
types: ['payment'],
})
if (finished) return

Loading…
Cancel
Save