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

SanitizedTransaction is too burdensome to construct #90

Closed
LucasSte opened this issue Mar 1, 2024 · 0 comments
Closed

SanitizedTransaction is too burdensome to construct #90

LucasSte opened this issue Mar 1, 2024 · 0 comments

Comments

@LucasSte
Copy link
Collaborator

LucasSte commented Mar 1, 2024

When submitting a transaction to SVM, one must create a SanitizedTransaction, but all its fields are private. Although it has a try_new function, it depends on SanitizedVersionedTransaction, whose try_new construction, in turn, depends on VersionedTransaction.

Such a process is so onerous that we use SanitizedTransaction::from_transaction_for_tests in our tests.

All these levels of indirection ensure the safety for the Solana use-case, but they create a burden for external users who need to navigate all these intricacies just to create a SanitizedTransaction.

@LucasSte LucasSte closed this as completed Mar 1, 2024
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

No branches or pull requests

1 participant