-
Notifications
You must be signed in to change notification settings - Fork 111
rpc,typescript: Add Paginated getOrders method #642
Conversation
@@ -173,7 +173,7 @@ blockchainTests.resets('WSClient', env => { | |||
// timestamp is approximately equal (within 1 second) because the server | |||
// will receive the request slightly after it is sent. | |||
const now = new Date(Date.now()).getTime(); | |||
const perPage = 10; | |||
const perPage = ordersLength / 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test wasn't actually making multiple paginated requests before so I modified it so that it does.
3afe790
to
83338c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for updating the tests. I left an optional suggestion for your perusal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just suggested some minor changes.
83338c1
to
ba0174b
Compare
…ed getOrders requests and add test
ba0174b
to
52de468
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Fixes: #86