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

[PoC] Implement quoteAndRevert in the router #1063

Closed
wants to merge 3 commits into from

Conversation

joaobrunoah
Copy link
Contributor

Description

Implements quoteAndRevert in the router, so batched operations revert individually and one query does not affect the other, if they're executed in a batch transaction.

This PR is in draft mode because adds 1.5kb to the current router.

Also, some mutation tests were removed because we the hook state is reverted after the query is executed, so it's not possible to check the sender address anymore.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Optimization: [ ] gas / [ ] bytecode
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests have 100% code coverage
  • The base branch is either main, or there's a description of how to merge

Issue Resolution

Closes #1062

@joaobrunoah joaobrunoah changed the title Implement quoteAndRevert in the router [PoC] Implement quoteAndRevert in the router Oct 24, 2024
@joaobrunoah
Copy link
Contributor Author

Since #1073 was abandoned, this PR is not viable.

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.

Try using quoteAndRevert for regular queries
1 participant