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

Implement pre_dispatch for SignedExtensions #370

Merged
merged 3 commits into from
Dec 14, 2021
Merged

Conversation

ascjones
Copy link
Contributor

pre_dispatch is a new method on the SignedExtension trait from substrate. We don't care about this internal implementation detail on the subxt side, but we require this trait to be implemented because we are using the SignedPayload and UncheckedExtrinsic types from sp_runtime.

The other option is of course to define our own local types and traits to remove this direct coupling, but that need some careful consideration.

In the meantime this makes things compile and continue working against the substrate master branch.

This also fixes an issue with duplicate substrate dependencies.

@dvdplm dvdplm requested a review from insipx December 14, 2021 17:05
macro/Cargo.toml Outdated Show resolved Hide resolved
Co-authored-by: Niklas Adolfsson <[email protected]>
@ascjones ascjones merged commit 7aac7df into master Dec 14, 2021
@ascjones ascjones deleted the aj-signed-pre-dispatch branch December 14, 2021 17:17
0623forbidden pushed a commit to DEIPworld/substrate-subxt that referenced this pull request Feb 15, 2022
* Explicitly specify master branch for sp-keyring dev dependency

* Implement pre_dispatch for `SignedExtension`s

* Update macro/Cargo.toml

Co-authored-by: Niklas Adolfsson <[email protected]>

Co-authored-by: Niklas Adolfsson <[email protected]>
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