Skip to content

Commit

Permalink
Serialize to the correct chain parameters version.
Browse files Browse the repository at this point in the history
  • Loading branch information
td202 committed Jan 14, 2025
1 parent cb9d55d commit 85c8d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell-src/Concordium/GRPC2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ instance ToProto (AccountAddress, EChainParametersAndKeys) where
SChainParametersV3 ->
let Parameters.ChainParameters{..} = params
in Proto.make $
ProtoFields.v2
ProtoFields.v3
.= Proto.make
( do
ProtoFields.consensusParameters .= toProto _cpConsensusParameters
Expand All @@ -2158,6 +2158,7 @@ instance ToProto (AccountAddress, EChainParametersAndKeys) where
ProtoFields.level1Keys .= toProto (Updates.level1Keys keys)
ProtoFields.level2Keys .= toProto (Updates.level2Keys keys)
ProtoFields.finalizationCommitteeParameters .= toProto (Parameters.unOParam _cpFinalizationCommitteeParameters)
ProtoFields.validatorScoreParameters .= toProto (Parameters.unOParam _cpValidatorScoreParameters)
)

instance ToProto FinalizationIndex where
Expand Down

0 comments on commit 85c8d20

Please sign in to comment.