From dadc6b9e76877143066758fbb15425cf60231570 Mon Sep 17 00:00:00 2001 From: NC <17676176+ensi321@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:39:13 +0900 Subject: [PATCH] Update packages/api/src/beacon/routes/beacon/pool.ts Co-authored-by: Nico Flaig --- packages/api/src/beacon/routes/beacon/pool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}, }; },