LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Fix the order of elements returned from peekUntil and dequeueUntil - Closes #1195 #1196

Closed SargeKhan closed 5 years ago

SargeKhan commented 5 years ago

What was the problem?

The PeekUntil and DequeueUntil should return transactions ordered from youngest to oldest.

How did I fix it?

Fixed the reduce function to add the oldest elements in the beginning of the array.

How to test it?

Run the tests.

Review checklist