Comparing version 4.21.1 to 4.21.2
@@ -135,5 +135,9 @@ "use strict"; | ||
let res = await this.doCall('getTransactions', { address: address.toString(), ...opts, limit, hash }, getTransactions); | ||
if (res.length > limit) { | ||
res = res.slice(0, limit); | ||
} | ||
// Adjust result | ||
if (opts.hash && opts.lt) { | ||
return res.slice(1); | ||
res.shift(); | ||
return res; | ||
} | ||
@@ -140,0 +144,0 @@ else { |
@@ -42,4 +42,4 @@ "use strict"; | ||
}); | ||
console.warn(tx1); | ||
console.warn(tx2); | ||
expect(tx1.length).toBe(10); | ||
expect(tx2.length).toBe(10); | ||
}); | ||
@@ -46,0 +46,0 @@ it('should get masterchain info', async () => { |
{ | ||
"name": "ton", | ||
"version": "4.21.1", | ||
"version": "4.21.2", | ||
"repository": "https://github.com/ex3ndr/ton.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
232999
5900