mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
len is fixed
This commit is contained in:
parent
da3c16a533
commit
67dbb75635
@ -117,7 +117,7 @@ impl AsMut<[u8]> for OptionalHash {
|
|||||||
|
|
||||||
impl Encode for OptionalHash {
|
impl Encode for OptionalHash {
|
||||||
fn is_ssz_fixed_len() -> bool {
|
fn is_ssz_fixed_len() -> bool {
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ssz_fixed_len() -> usize {
|
fn ssz_fixed_len() -> usize {
|
||||||
@ -144,7 +144,7 @@ impl Encode for OptionalHash {
|
|||||||
|
|
||||||
impl Decode for OptionalHash {
|
impl Decode for OptionalHash {
|
||||||
fn is_ssz_fixed_len() -> bool {
|
fn is_ssz_fixed_len() -> bool {
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ssz_fixed_len() -> usize {
|
fn ssz_fixed_len() -> usize {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user