Skip to content

Commit f5e5fb1

Browse files
Nattapat IammelapNattapat Iammelap
authored andcommitted
update TssVerifier
1 parent 4dbf19b commit f5e5fb1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/TssVerifier.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ contract TssVerifier is Pausable, Ownable2Step, ITssVerifier {
9191
// If the active time of the public key is in the transition period, then
9292
// we need to check the previous public key as it may be the signature from
9393
// the previous group.
94-
bool isInTransitionPeriod = publicKeys[pubKeyIdx].activeTime + transitionPeriod >= block.timestamp;
94+
PublicKey memory publicKey = publicKeys[pubKeyIdx];
9595
if (
96-
pubKeyIdx > 0 && isInTransitionPeriod
96+
pubKeyIdx > 0 && publicKey.activeTime + transitionPeriod >= block.timestamp
9797
&& _verifyWithPublicKey(hashedMessage, randomAddr, signature, publicKeys[pubKeyIdx - 1])
9898
) {
9999
return true;
100100
}
101101

102-
return _verifyWithPublicKey(hashedMessage, randomAddr, signature, publicKeys[pubKeyIdx]);
102+
return _verifyWithPublicKey(hashedMessage, randomAddr, signature, publicKey);
103103
}
104104

105105
/// @dev Pauses the contract to prevent any further updates.

0 commit comments

Comments
 (0)