Closed jpraynaud closed 2 months ago
Have a stronger type checking implemented on the BlockNumber type which is currently an alias to u64.
BlockNumber
u64
Refactor the BlockNumber type with a struct.
Deref
DerefMut
Eq
Ord
Display
Debug
Copy
Serialize
Deserialize
Add
Mult
Why
Have a stronger type checking implemented on the
BlockNumber
type which is currently an alias tou64
.What
Refactor the
BlockNumber
type with a struct.How
BlockNumber
with a structDeref
,DerefMut
,Eq
,Ord
,Display
,Debug
,Copy
,Serialize
,Deserialize
and arithmetic operations (Add
,Mult
) onBlockNumber