mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Fix VersionedSlate::version() misreporting V5 slates as V4
version() returned SlateVersion::V4 for the V5 variant, so any version-aware logic downstream would misidentify a V5 slate as V4. Return V5 for V5.
This commit is contained in:
@@ -67,7 +67,7 @@ impl VersionedSlate {
|
||||
/// Return slate version
|
||||
pub fn version(&self) -> SlateVersion {
|
||||
match *self {
|
||||
VersionedSlate::V5(_) => SlateVersion::V4,
|
||||
VersionedSlate::V5(_) => SlateVersion::V5,
|
||||
VersionedSlate::V4(_) => SlateVersion::V4,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user