paritytech / subxt

Interact with Substrate based nodes in Rust or WebAssembly
Other
390 stars 236 forks source link

Allow PartialExtrinsic to be held across await points #1658

Closed jsdw closed 1 week ago

jsdw commented 1 week ago

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.