Skip to content

Commit d068482

Browse files
committed
change error
1 parent 42150c6 commit d068482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validium/ScrollChainValidium.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,11 @@ contract ScrollChainValidium is AccessControlUpgradeable, PausableUpgradeable, I
430430
// Start from the "latest" key and continue fetching keys until we find the key
431431
// that was rotated before the message index we have been provided.
432432
uint256 _numKeys = encryptionKeys.length;
433-
if (_numKeys == 0) revert ErrorInvalidEncryptionKeyLength();
433+
if (_numKeys == 0) revert ErrorUnknownEncryptionKey();
434434
EncryptionKey memory _encryptionKey = encryptionKeys[--_numKeys];
435435

436436
while (_encryptionKey.msgIndex > _msgIndex) {
437-
if (_numKeys == 0) revert ErrorInvalidEncryptionKeyLength();
437+
if (_numKeys == 0) revert ErrorUnknownEncryptionKey();
438438
_encryptionKey = encryptionKeys[--_numKeys];
439439
}
440440

0 commit comments

Comments
 (0)