@@ -41,7 +41,7 @@ contract SP1ICS07Tendermint is ISP1ICS07TendermintErrors, ISP1ICS07Tendermint, I
41
41
IICS07TendermintMsgs.ClientState public clientState;
42
42
/// @notice The mapping from height to consensus state keccak256 hashes.
43
43
/// @dev Revision number need not be keyed as it is not allowed to change.
44
- mapping (uint32 height = > bytes32 hash ) private _consensusStateHashes;
44
+ mapping (uint64 height = > bytes32 hash ) private _consensusStateHashes;
45
45
46
46
/// @inheritdoc ISP1ICS07Tendermint
47
47
uint16 public constant ALLOWED_SP1_CLOCK_DRIFT = 30 minutes ;
@@ -85,7 +85,7 @@ contract SP1ICS07Tendermint is ISP1ICS07TendermintErrors, ISP1ICS07Tendermint, I
85
85
}
86
86
87
87
/// @inheritdoc ISP1ICS07Tendermint
88
- function getConsensusStateHash (uint32 revisionHeight ) public view returns (bytes32 ) {
88
+ function getConsensusStateHash (uint64 revisionHeight ) public view returns (bytes32 ) {
89
89
bytes32 hash = _consensusStateHashes[revisionHeight];
90
90
require (hash != 0 , ConsensusStateNotFound ());
91
91
return hash;
@@ -369,7 +369,7 @@ contract SP1ICS07Tendermint is ISP1ICS07TendermintErrors, ISP1ICS07Tendermint, I
369
369
/// @param trustedConsensusState The trusted consensus state
370
370
function _validateMembershipOutput (
371
371
bytes32 outputCommitmentRoot ,
372
- uint32 proofHeight ,
372
+ uint64 proofHeight ,
373
373
IICS07TendermintMsgs.ConsensusState memory trustedConsensusState
374
374
)
375
375
private
@@ -511,7 +511,7 @@ contract SP1ICS07Tendermint is ISP1ICS07TendermintErrors, ISP1ICS07Tendermint, I
511
511
/// @param timestamp The timestamp of the trusted consensus state.
512
512
/// @dev WARNING: Transient store is not reverted even if a message within a transaction reverts.
513
513
/// @dev WARNING: This function must be called after all proof and validation checks.
514
- function _cacheKvPairs (uint32 proofHeight , IMembershipMsgs.KVPair[] memory kvPairs , uint256 timestamp ) private {
514
+ function _cacheKvPairs (uint64 proofHeight , IMembershipMsgs.KVPair[] memory kvPairs , uint256 timestamp ) private {
515
515
for (uint256 i = 0 ; i < kvPairs.length ; i++ ) {
516
516
bytes32 kvPairHash = keccak256 (abi.encode (proofHeight, kvPairs[i]));
517
517
kvPairHash.asUint256 ().tstore (timestamp);
@@ -523,7 +523,7 @@ contract SP1ICS07Tendermint is ISP1ICS07TendermintErrors, ISP1ICS07Tendermint, I
523
523
/// @param kvPair The key-value pair.
524
524
/// @return The timestamp of the cached key-value pair.
525
525
function _getCachedKvPair (
526
- uint32 proofHeight ,
526
+ uint64 proofHeight ,
527
527
IMembershipMsgs.KVPair memory kvPair
528
528
)
529
529
private
0 commit comments