mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 06:14:38 +00:00
EIP-7916: ProgressiveList and tests
This commit is contained in:
@@ -10,7 +10,7 @@ use ssz_derive::{Decode, Encode};
|
||||
use tree_hash::TreeHash;
|
||||
use tree_hash_derive::TreeHash;
|
||||
use types::typenum::*;
|
||||
use types::{BitList, BitVector, FixedVector, ForkName, VariableList, Vector};
|
||||
use types::{BitList, BitVector, FixedVector, ForkName, ProgressiveList, VariableList, Vector};
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
#[context_deserialize(ForkName)]
|
||||
@@ -157,6 +157,17 @@ impl Case for SszGeneric {
|
||||
[length => typenum]
|
||||
)?;
|
||||
}
|
||||
"basic_progressive_list" => {
|
||||
let elem_ty = parts[1];
|
||||
|
||||
type_dispatch!(
|
||||
ssz_generic_test,
|
||||
(&self.path, fork_name),
|
||||
ProgressiveList,
|
||||
<>,
|
||||
[elem_ty => primitive_type]
|
||||
)?;
|
||||
}
|
||||
"bitlist" => {
|
||||
let mut limit = parts[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user