Skip to content

refactor: internal version of transact #885

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

Merged
merged 2 commits into from
Jul 18, 2024
Merged

Conversation

rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Jul 18, 2024

Adds an internal version of transact that takes a callFactory, allowing to move the raising of errors inside getSubmittable / submit.

We could instead modify the signature of transact to accept factories as well as extrinsics.

How to test:

I adjusted unit tests accordingly.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@rflechtner rflechtner force-pushed the rf-transact-internal branch from aeba6d5 to 455d96f Compare July 18, 2024 09:00
@rflechtner rflechtner requested a review from abdulmth July 18, 2024 09:09
@abdulmth abdulmth merged commit ab44926 into rf-did-helpers Jul 18, 2024
5 checks passed
@abdulmth abdulmth deleted the rf-transact-internal branch July 18, 2024 12:28
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.

2 participants