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 execution functions with proper error handling #107

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

JulianGCalderon
Copy link
Contributor

@JulianGCalderon JulianGCalderon commented Dec 17, 2024

Closes #99, #84, #18
Supersedes #19

This PR refactors the execution functions to make them easier to user, and adds proper error handling. I replaced the old functions with 2 new functions:

  • execute_transaction: Executes a single transaction with a clean state, fetching all needed information.
  • fetch_transaction: Fetches all information needed to execute a transaction.

The github diff is not useful for reviewing the changes as they have a lot of overlap. I'd suggest reviewing it with an external editor, as the whole execution.rs file has been changed.

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.

Fix declare transactions in function execute_tx_with_blockifier
1 participant