Remove unused param from prepareForkedBlockReading (#5037)

This commit is contained in:
henridf 2023-06-07 12:39:04 +02:00 committed by GitHub
parent d358aa67cb
commit 3bda24d4d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -923,7 +923,7 @@ template unrecognizedFieldWarning =
## ForkedBeaconBlock
template prepareForkedBlockReading(
reader: var JsonReader[RestJson], value: untyped,
reader: var JsonReader[RestJson],
version: var Option[ConsensusFork],
data: var Option[JsonString],
blockTypeName: cstring) =
@ -967,7 +967,7 @@ proc readValue*[BlockType: ForkedBeaconBlock](
version: Option[ConsensusFork]
data: Option[JsonString]
prepareForkedBlockReading(reader, value, version, data, "ForkedBeaconBlock")
prepareForkedBlockReading(reader, version, data, "ForkedBeaconBlock")
case version.get():
of ConsensusFork.Phase0:
@ -1039,7 +1039,7 @@ proc readValue*[BlockType: ForkedBlindedBeaconBlock](
version: Option[ConsensusFork]
data: Option[JsonString]
prepareForkedBlockReading(reader, value, version, data,
prepareForkedBlockReading(reader, version, data,
"ForkedBlindedBeaconBlock")
case version.get():
@ -1111,7 +1111,7 @@ proc readValue*[BlockType: Web3SignerForkedBeaconBlock](
version: Option[ConsensusFork]
data: Option[JsonString]
prepareForkedBlockReading(reader, value, version, data,
prepareForkedBlockReading(reader, version, data,
"Web3SignerForkedBeaconBlock")
case version.get():