diff --git a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim index 375f032f9..de19b6c92 100644 --- a/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim +++ b/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim @@ -1417,8 +1417,8 @@ template prepareForkedBlockReading(blockType: typedesc, version: var Opt[ConsensusFork], data: var Opt[JsonString], blinded: var Opt[bool], - payloadValue: var Opt[Uint256], - blockValue: var Opt[Uint256]) = + payloadValue: var Opt[UInt256], + blockValue: var Opt[UInt256]) = for fieldName {.inject.} in readObjectFields(reader): case fieldName of "version": @@ -1459,7 +1459,7 @@ template prepareForkedBlockReading(blockType: typedesc, if payloadValue.isSome(): reader.raiseUnexpectedField( "Multiple `execution_payload_value` fields found", blockType.name) - payloadValue = Opt.some(reader.readValue(Uint256)) + payloadValue = Opt.some(reader.readValue(UInt256)) else: unrecognizedFieldWarning(fieldName, blockType.name) of "consensus_block_value": @@ -1467,7 +1467,7 @@ template prepareForkedBlockReading(blockType: typedesc, if blockValue.isSome(): reader.raiseUnexpectedField( "Multiple `consensus_block_value` fields found", blockType.name) - blockValue = Opt.some(reader.readValue(Uint256)) + blockValue = Opt.some(reader.readValue(UInt256)) else: unrecognizedFieldWarning(fieldName, blockType.name) else: @@ -1486,8 +1486,8 @@ proc readValue*[BlockType: ForkedBlindedBeaconBlock]( version: Opt[ConsensusFork] data: Opt[JsonString] blinded: Opt[bool] - payloadValue: Opt[Uint256] - blockValue: Opt[Uint256] + payloadValue: Opt[UInt256] + blockValue: Opt[UInt256] prepareForkedBlockReading(BlockType, reader, version, data, blinded, payloadValue, blockValue) @@ -1552,8 +1552,8 @@ proc readValue*[BlockType: Web3SignerForkedBeaconBlock]( version: Opt[ConsensusFork] data: Opt[JsonString] blinded: Opt[bool] - payloadValue: Opt[Uint256] - blockValue: Opt[Uint256] + payloadValue: Opt[UInt256] + blockValue: Opt[UInt256] prepareForkedBlockReading(BlockType, reader, version, data, blinded, payloadValue, blockValue) @@ -3358,7 +3358,7 @@ proc decodeBytes*[T: ProduceBlockResponseV3]( consensusValue = if len(headerConsensusValue) == 0: # TODO (cheatfate): We should not allow empty `consensus-value`. - Opt.none(Uint256) + Opt.none(UInt256) else: try: Opt.some parse(headerConsensusValue, UInt256, 10) diff --git a/ncli/nim.cfg b/ncli/nim.cfg index 1e7f1e9bc..4afd8a62f 100644 --- a/ncli/nim.cfg +++ b/ncli/nim.cfg @@ -10,5 +10,5 @@ -d:"libp2p_pki_schemes=secp256k1" --styleCheck:usages ---styleCheck:error +--styleCheck:hint --hint[Processing]:off diff --git a/research/nim.cfg b/research/nim.cfg index 839359063..3c26895b3 100644 --- a/research/nim.cfg +++ b/research/nim.cfg @@ -10,5 +10,5 @@ -d:"libp2p_pki_schemes=secp256k1" --styleCheck:usages ---styleCheck:error +--styleCheck:hint --hint[Processing]:off