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