EIP-7916: ProgressiveList and tests

This commit is contained in:
Michael Sproul
2025-12-01 12:23:39 +11:00
parent 7cee5d6090
commit 86f8c2e642
8 changed files with 25 additions and 6 deletions

View File

@@ -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];