Skip to content
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

fix(rpc): use from_block and to_block in event filter #540

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

kkovaacs
Copy link
Contributor

v0.1.0 of the JSON-RPC specification requires from_block and
to_block in the event filter object. We somehow failed to make
this change in pathfinder and were using the old fromBlock
and toBlock names.

This change keeps the old names as aliases so that we don't break the
API for users who have updated their code to account for the bug.

Fixes #536.

v0.1.0 of the JSON-RPC specification requires `from_block` and
`to_block` in the event filter object. We somehow failed to make
this change in pathfinder and were using the old `fromBlock`
and `toBlock` names.

This change keeps the old names as aliases so that we don't break the
API for users who have updated their code to account for the bug.

Fixes #536.
@kkovaacs kkovaacs requested a review from a team as a code owner August 29, 2022 08:16
@kkovaacs kkovaacs merged commit 6c6d66c into main Aug 29, 2022
@kkovaacs kkovaacs deleted the krisztian/getevents-block-param-names branch August 29, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

starknet_getEvents filter params is incorrect
4 participants