Skip to content

Commit

Permalink
Update packages/api/src/beacon/routes/beacon/pool.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
  • Loading branch information
ensi321 and nflaig committed Aug 5, 2024
1 parent 88e593e commit dadc6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/beacon/routes/beacon/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ export function getDefinitions(config: ChainForkConfig): RouteDefinitions<Endpoi
return {
body:
ForkSeq[fork] >= 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},
};
},
Expand Down

0 comments on commit dadc6b9

Please sign in to comment.