mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-19 07:03:12 +00:00
744ae2e687
Fix the lint errors. Remove custom type `StateDiff` and then use `List[StemStateDiff, MAX_STEMS]` directly in `ExecutionWitness`.
22 lines
526 B
Python
22 lines
526 B
Python
from typing import Dict
|
|
|
|
from .base import BaseSpecBuilder
|
|
from ..constants import EIP6800
|
|
|
|
|
|
class EIP6800SpecBuilder(BaseSpecBuilder):
|
|
fork: str = EIP6800
|
|
|
|
@classmethod
|
|
def imports(cls, preset_name: str):
|
|
return f'''
|
|
from eth2spec.deneb import {preset_name} as deneb
|
|
from eth2spec.utils.ssz.ssz_typing import Bytes31
|
|
'''
|
|
|
|
@classmethod
|
|
def hardcoded_custom_type_dep_constants(cls, spec_object) -> str:
|
|
return {
|
|
'MAX_STEMS': spec_object.preset_vars['MAX_STEMS'].value,
|
|
}
|