diff --git a/packages/api/src/beacon/routes/beacon/pool.ts b/packages/api/src/beacon/routes/beacon/pool.ts index d9c9f2d9f7b3..388c98fb36d1 100644 --- a/packages/api/src/beacon/routes/beacon/pool.ts +++ b/packages/api/src/beacon/routes/beacon/pool.ts @@ -409,8 +409,8 @@ export function getDefinitions(config: ChainForkConfig): RouteDefinitions= ForkSeq.electra - ? ssz.electra.AttesterSlashing.toJson(attesterSlashing as electra.AttesterSlashing) - : ssz.phase0.AttesterSlashing.toJson(attesterSlashing as phase0.AttesterSlashing), + ? ssz.electra.AttesterSlashing.toJson(attesterSlashing) + : ssz.phase0.AttesterSlashing.toJson(attesterSlashing), headers: {[MetaHeader.Version]: fork}, }; },