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

feat(pxe): Add transaction validation check in PXE.sendTx() #10974

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

crStiv
Copy link

@crStiv crStiv commented Dec 30, 2024

Fixes #10967

This PR adds validation checks when sending transactions through the PXE interface to ensure invalid transactions are rejected early with a clear error message.

Changes:

  • Added transaction validation check in PXEService.sendTx() method
  • Added @throws documentation to the PXE interface
  • Added unit tests to verify validation behavior

The changes ensure that invalid transactions are rejected immediately with a clear error message instead of being silently accepted and potentially failing later in the process.

Added tests:

  • Test for rejecting invalid transactions
  • Test for accepting valid transactions
  • Test for handling duplicate transactions

This improves the developer experience by providing immediate feedback when attempting to send invalid transactions.

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.

chore: Aztec node should throw on an invalid sendTx
1 participant