-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
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
blockIdentifier object converts string decimals into pending blocktag #1070
Comments
Hello, |
@Eikix because it's you, I wont close the issue... but I vowed to close incomplete issues! |
With the latest devnet-rs and starknet.js 6.6.6 i get this:
My code:
gives:
On the other hand this change:
gives:
|
Thanks for the callout, The block of code from If The problem started because the doc comment associated with the type is misleading:
|
OK, the block class code you pasted in the issue is from v6.6.6... but it shouldn't matter, just for us to be on the same page! 5.24.3 is old, but still latest official version... we will release v6 officially soon! But as far as I can see the part of the docs is the same in the latest docs as in v5, and it's not formatted well, we can think of something here + better explanaition / example |
You're right! This is consistent with our results:
this is from 5.24.3, so string decimals will yield "pending" blocktag whereas in 6.6.6, it'll yield null |
"decimal string and number are detected as block numbers" -> the bolded part seems not correct we only have these tests, should be expanded and fixed cc @tabaktoni :
|
Thank you for pointing this out. The decimal string is fixed. |
Niice:)! Thanks for the fast response and involvement |
🎉 This issue has been resolved in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
A clear and concise description of what the bug is.
In the block class:
But in the type declaration, we get:
To Reproduce
Steps to reproduce the behavior
Do a provider.call("some_method", {blockIdentifier: "1020230320")) -> it'll be converted to block pending
Additional resources:
Logs from our docker shows that we're trying to query a certain block number, but the request itself defaults to blocktag pending
Associated code:
The text was updated successfully, but these errors were encountered: