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

fix discriminant #77

Merged
merged 3 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/header/extension/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#[cfg_attr(feature = "runtime", derive(PassByCodec))]
#[repr(u8)]
pub enum HeaderExtension {
V3(v3::HeaderExtension) = 3,
V3(v3::HeaderExtension) = 2,

Check warning on line 19 in core/src/header/extension/mod.rs

View workflow job for this annotation

GitHub Actions / build_and_test

casting integer literal to `u8` is unnecessary
}

/// It forwards the call to the inner version of the header. Any invalid version will return the
Expand Down
2 changes: 1 addition & 1 deletion core/src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ mod tests {
assert_eq!(
hash,
H256(hex!(
"0aaeda45f6b0258b5453c11c77c6cdedae3739c90a1a82851cfa5646236dc497"
"c9941af1cb862db9f2e4c0c94f457d1217b363ecf6e6cc0dbeb5cbfeb35fbc12"
))
);

Expand Down
2 changes: 1 addition & 1 deletion core/src/header_version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ use sp_runtime_interface::pass_by::PassByCodec;
#[derive(Debug, Clone, Copy, Eq, PartialEq, Encode, Decode, TypeInfo)]
#[cfg_attr(feature = "runtime", derive(PassByCodec))]
pub enum HeaderVersion {
V3 = 3, // Current one
V3 = 2, // Current one
}
Loading