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

Refactor: Reuse v6 starknet_add-Invoke/DeployAccount/Declare-Transaction handler for v7 #2534

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hudem1
Copy link
Contributor

@hudem1 hudem1 commented Feb 21, 2025

rpc pkg cleanup to #2437

  • Fix a little missing validation field for the SenderAddress field inside v6 Transaction type.

  • Reuse v6 handler for v7 for starknet_addInvokeTransaction, starknet_addDeployAccountTransaction and starknet_addDeclareTransaction

@hudem1 hudem1 mentioned this pull request Feb 20, 2025
23 tasks
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.81%. Comparing base (94071e4) to head (fab8d2b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2534      +/-   ##
==========================================
+ Coverage   73.65%   73.81%   +0.15%     
==========================================
  Files         137      137              
  Lines       16659    16531     -128     
==========================================
- Hits        12271    12203      -68     
+ Misses       3526     3478      -48     
+ Partials      862      850      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rianhughes rianhughes self-requested a review February 24, 2025 14:55
@rianhughes
Copy link
Contributor

Why can't we delete the v8 AddTransaction method? Is it because we will need to restrict the method to only allow v3 transactions?

@hudem1
Copy link
Contributor Author

hudem1 commented Feb 26, 2025

Why can't we delete the v8 AddTransaction method? Is it because we will need to restrict the method to only allow v3 transactions?

Yes this, and there are many other different validations b/w rpc v7 and v8 txs.
And also, v8 tx has the additional variant ResourceL1DataGas for Resource enum.

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.

3 participants