Skip to content

Commit

Permalink
add Nim bug reference
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Jun 26, 2024
1 parent b00049d commit a5c8bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon_chain/spec/forks_light_client.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ func toElectraLightClientHeader(

func toElectraLightClientHeader(
# `SomeSignedBeaconBlock`: https://github.com/nim-lang/Nim/issues/18095
blck:
blck:
electra.SignedBeaconBlock | electra.TrustedSignedBeaconBlock
): electra.LightClientHeader =
template payload: untyped = blck.message.body.execution_payload
Expand Down Expand Up @@ -1293,7 +1293,7 @@ func shortLog*[
of LightClientDataFork.Electra:
electraData: typeof(x.electraData.shortLog())

let xKind = x.kind # Nim 2.0.6: Using `kind: x.kind` inside case is broken
let xKind = x.kind # https://github.com/nim-lang/Nim/issues/23762
case xKind
of LightClientDataFork.Electra:
ResultType(kind: xKind, electraData: x.electraData.shortLog())
Expand Down

0 comments on commit a5c8bae

Please sign in to comment.