UncheckedExtrinsic: Harden decode and clarify EXTRINSIC_FORMAT_VERSION (#10829)

* UncheckedExtrinsic: Harden decode and clarify `EXTRINSIC_FORMAT_VERSION`

* Apply suggestions from code review
This commit is contained in:
Bastian Köcher
2022-02-10 13:34:35 +01:00
committed by GitHub
parent 8d783038c8
commit 20b2bba1cd
2 changed files with 42 additions and 15 deletions
+3 -1
View File
@@ -748,7 +748,9 @@ pub trait Extrinsic: Sized + MaybeMallocSizeOf {
/// Implementor is an [`Extrinsic`] and provides metadata about this extrinsic.
pub trait ExtrinsicMetadata {
/// The version of the `Extrinsic`.
/// The format version of the `Extrinsic`.
///
/// By format is meant the encoded representation of the `Extrinsic`.
const VERSION: u8;
/// Signed extensions attached to this `Extrinsic`.