Commit e851e040 authored by Jason Salyers's avatar Jason Salyers
Browse files

Merge branch 'jsalyers-more-account-history-tests' into 'develop'

[JES] Doing another test. Staging still seems to be having problems

See merge request !86
parents dddfaa77 b965dbb7
...@@ -22,7 +22,7 @@ let wallet_operations_bitmask = makeBitMaskFilter([ ...@@ -22,7 +22,7 @@ let wallet_operations_bitmask = makeBitMaskFilter([
op.escrow_release, op.escrow_release,
op.fill_convert_request, op.fill_convert_request,
op.fill_order, op.fill_order,
op.claim_reward_balance, //op.claim_reward_balance,
]); ]);
async function getStateForTrending() { async function getStateForTrending() {
...@@ -82,10 +82,13 @@ async function getTransferHistory(account) ...@@ -82,10 +82,13 @@ async function getTransferHistory(account)
{ {
let transfer_history = null; let transfer_history = null;
let start_sequence = -1; let start_sequence = -1;
let all_transfers = [];
try try
{ {
transfer_history = await api.getAccountHistoryAsync(account, start_sequence, 500, ...wallet_operations_bitmask); transfer_history = await api.getAccountHistoryAsync(account, start_sequence, 500, ...wallet_operations_bitmask);
console.log("got transfer history: ", transfer_history);
console.log("transfer history length: ", transfer_history.length);
} }
catch (err) catch (err)
{ {
...@@ -107,6 +110,8 @@ async function getTransferHistory(account) ...@@ -107,6 +110,8 @@ async function getTransferHistory(account)
} }
} }
if (transfer_history === null || transfer_history === undefined)
transfer_history = [[]];
return transfer_history; return transfer_history;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment