diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/SchemaDefinitionsElectra.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/SchemaDefinitionsElectra.java index 585c1798d9c..ad036946b10 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/SchemaDefinitionsElectra.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/SchemaDefinitionsElectra.java @@ -32,9 +32,9 @@ import tech.pegasys.teku.spec.datastructures.execution.versions.electra.DepositRequestSchema; import tech.pegasys.teku.spec.datastructures.execution.versions.electra.ExecutionRequestsSchema; import tech.pegasys.teku.spec.datastructures.execution.versions.electra.WithdrawalRequestSchema; +import tech.pegasys.teku.spec.datastructures.operations.AttestationSchema; import tech.pegasys.teku.spec.datastructures.operations.SingleAttestation; import tech.pegasys.teku.spec.datastructures.operations.SingleAttestationSchema; -import tech.pegasys.teku.spec.datastructures.operations.SingleAttestation; import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingConsolidation; import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingConsolidation.PendingConsolidationSchema; import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingDeposit; diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaRegistryBuilder.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaRegistryBuilder.java index 62317413633..16ac090a73a 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaRegistryBuilder.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaRegistryBuilder.java @@ -191,12 +191,12 @@ public static SchemaRegistryBuilder create() { .addProvider(createWithdrawalRequestSchemaProvider()) .addProvider(createConsolidationRequestSchemaProvider()) .addProvider(createExecutionRequestsSchemaProvider()) -.addProvider(createSingleAttestationSchemaProvider()); + .addProvider(createSingleAttestationSchemaProvider()); } private static SchemaProvider createSingleAttestationSchemaProvider() { - return constantProviderBuilder(SINGLE_ATTESTATION_SCHEMA) - .withCreator(ELECTRA, (registry, specConfig) -> new SingleAttestationSchema()) + return providerBuilder(SINGLE_ATTESTATION_SCHEMA) + .withCreator(ELECTRA, (registry, specConfig, schemaName) -> new SingleAttestationSchema()) .build(); } diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaTypes.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaTypes.java index 08ec115ca3f..1c6b3756672 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaTypes.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaTypes.java @@ -171,7 +171,7 @@ public class SchemaTypes { public static final SchemaId CONSOLIDATION_REQUEST_SCHEMA = create("CONSOLIDATION_REQUEST_SCHEMA"); public static final SchemaId SINGLE_ATTESTATION_SCHEMA = - create("SINGLE_ATTESTATION_SCHEMA"); + create("SINGLE_ATTESTATION_SCHEMA"); private SchemaTypes() { // Prevent instantiation