From 3bda24d4d162dce72ed27bca667f6da49cf7043f Mon Sep 17 00:00:00 2001 From: henridf Date: Wed, 7 Jun 2023 12:39:04 +0200 Subject: [PATCH] Remove unused param from prepareForkedBlockReading (#5037) --- beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim index 27c6bc494..45995ea68 100644 --- a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim +++ b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim @@ -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():