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

Allow PartialExtrinsic to be held across await points #1658

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Jun 26, 2024

One of the main use cases of PartialExtrinsic is that you can build it, then go and obtain a signature from elsewhere (quite possibly asynchronously), and then hand the signature back to the PartialExtrinsic to build the final extrinsic to submit.

PartialExtrinsic didn't implement Send previously, but with this PR it does. An example is also added to prove/show this.

@jsdw jsdw requested a review from a team as a code owner June 26, 2024 11:20
Copy link
Contributor

@pgherveou pgherveou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for adding that in 🙏

@jsdw jsdw merged commit 75bb9b8 into master Jun 26, 2024
13 checks passed
@jsdw jsdw deleted the jsdw-sendable-partial-tx branch June 26, 2024 12:23
@jsdw jsdw mentioned this pull request Oct 24, 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

Successfully merging this pull request may close these issues.

3 participants