Skip to content

Make block number not optional in txs #1643

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

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

cptartur
Copy link
Member

Closes #

Introduced changes

  • Following changes in the RPC 0.9.0 spec

  • This PR contains breaking changes

@cptartur cptartur marked this pull request as ready for review August 12, 2025 20:08
@cptartur cptartur requested a review from franciszekjob August 18, 2025 15:13
0.28.0-rc.4 Migration guide
***************************

Version 0.28.0-rc.4 of **starknet.py** comes with partial support for RPC 0.9.0 (without the support for changes in the Websockets methods).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's reform it so it says the support for RPC API is fully compatible but websockets aren't.

Comment on lines +93 to +94
block_hash = Felt(data_key="block_hash", load_default=None)
block_number = fields.Integer(data_key="block_number", required=True)
Copy link
Collaborator

@franciszekjob franciszekjob Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In spec both fields are required.

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.

2 participants