We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The getBlockRange method returns an error for valid input:
getBlockRange
tronweb/src/lib/trx.js
Lines 516 to 517 in 4b131bb
<
<=
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.
end
start
The text was updated successfully, but these errors were encountered:
It seems like it's a bug. We'll fix it in the next version. Currently, you can request 2 blocks and use only one of them.
Sorry, something went wrong.
fix: issue #398
700d55b
fixed in TronWeb 5.3.1
No branches or pull requests
The
getBlockRange
method returns an error for valid input:tronweb/src/lib/trx.js
Lines 516 to 517 in 4b131bb
It should be
<
instead of<=
:If
end
is equal tostart
, I expect to get 1 block instead of error.The text was updated successfully, but these errors were encountered: