Skip to content

Commit 2050f15

Browse files
committed
Fix copy-paste bug in withForkyHistoricalSummariesWithProof
And remove unneeded default forkySummaries.
1 parent 665304c commit 2050f15

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

beacon_chain/spec/eth2_apis/rest_nimbus_calls.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ proc getHistoricalSummariesV1*(
189189
raise
190190
(ref RestResponseError)(msg: msg, status: error.code, message: error.message)
191191
else:
192-
raiseRestResponseError(resp)
192+
raiseRestResponseError(resp)

beacon_chain/spec/eth2_apis/rest_types.nim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,14 +1199,11 @@ template withForkyHistoricalSummariesWithProof*(
11991199
template forkySummaries: untyped {.inject, used.} = x.capellaData
12001200
body
12011201
of ConsensusFork.Bellatrix:
1202-
const consensusFork {.inject, used.} = ConsensusFork.Deneb
1203-
template forkySummaries: untyped {.inject, used.} = GetHistoricalSummariesV1Response()
1202+
const consensusFork {.inject, used.} = ConsensusFork.Bellatrix
12041203
body
12051204
of ConsensusFork.Altair:
12061205
const consensusFork {.inject, used.} = ConsensusFork.Altair
1207-
template forkySummaries: untyped {.inject, used.} = GetHistoricalSummariesV1Response()
12081206
body
12091207
of ConsensusFork.Phase0:
12101208
const consensusFork {.inject, used.} = ConsensusFork.Phase0
1211-
template forkySummaries: untyped {.inject, used.} = GetHistoricalSummariesV1Response()
12121209
body

0 commit comments

Comments
 (0)