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

Add ExtrsinicV5 type #816

Merged
merged 15 commits into from
Feb 4, 2025
Merged

Add ExtrsinicV5 type #816

merged 15 commits into from
Feb 4, 2025

Conversation

haerdib
Copy link
Contributor

@haerdib haerdib commented Jan 22, 2025

  • cargo update

  • Deprecate ExtrinsicV4

  • Use Extrinsic Type from Substrate directly (V5): Only requirement: GenericTxExtension needs to implement the TransactionExtension from Substrate.

  • merge and rebase Upgrade to ubuntu-latest #823

closes #810

@haerdib haerdib self-assigned this Jan 22, 2025
@haerdib haerdib added the F8-newfeature Introduces a new feature label Jan 22, 2025
@haerdib haerdib requested a review from Niederb January 31, 2025 13:17
@haerdib haerdib marked this pull request as ready for review January 31, 2025 13:18
Copy link
Contributor

@Niederb Niederb left a comment

Choose a reason for hiding this comment

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

Looks good. Only a small suggestion/comment

pub struct SignedPayload<Call, SignedExtra, AdditionalSigned>(
(Call, SignedExtra, AdditionalSigned),
);
pub struct SignedPayload<Call, SignedExtra, Implicit>((Call, SignedExtra, Implicit));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be nice to also rename all the SignedExtra-Types in generics. It is also still used in some other places (author.rs, block_builder.rs, transaction_payment.rs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, you're absolutely right

@haerdib haerdib requested a review from Niederb February 4, 2025 14:12
Copy link
Contributor

@Niederb Niederb left a comment

Choose a reason for hiding this comment

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

Nice 😸

@haerdib haerdib merged commit 109670d into master Feb 4, 2025
57 checks passed
@haerdib haerdib deleted the bh/extrinsic-v5 branch February 4, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2-breaksapi F8-newfeature Introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade UncheckedExtrinsicV4 to V5
2 participants