The getBlockRange method returns an error for valid input:
|
if (!utils.isInteger(end) || end <= start) |
|
return callback('Invalid end of range provided'); |
It should be
< instead of
<=:
if (!utils.isInteger(end) || end < start)
return callback('Invalid end of range provided');
If end is equal to start, I expect to get 1 block instead of error.
The
getBlockRangemethod returns an error for valid input:tronweb/src/lib/trx.js
Lines 516 to 517 in 4b131bb
It should be
<instead of<=:If
endis equal tostart, I expect to get 1 block instead of error.