Closed dr-orlovsky closed 1 year ago
This should enable future fast-forward updates.
Currently version must be enforced at the type level, i.e. like
struct Transition<const VERSION: u8 = 0> { version: Ffv, } impl<const VERSION: u8> StrictDecode for Transition { fn strict_check(&self) -> Result<(), DecodeError> { if self.version != Ffv::V0 { return .... } } }
Closed with #151
This should enable future fast-forward updates.
Currently version must be enforced at the type level, i.e. like