We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9beeed2 commit 3912518Copy full SHA for 3912518
src/shutter-service/ShutterEventTriggerRegistry.sol
@@ -84,10 +84,11 @@ contract ShutterEventTriggerRegistry is Ownable {
84
EventTriggerRegistration storage registrationData = registrations[
85
identity
86
];
87
- // Ensure no one is trying to decrease ttl.
88
- require(registrationData.ttl < ttl, TTLTooShort());
89
90
if (registrationData.ttl != 0) {
+ // Ensure no one is trying to decrease ttl.
+ require(registrationData.ttl < ttl, TTLTooShort());
91
+
92
require(
93
keccak256(abi.encode(triggerDefinition)) ==
94
registrationData.triggerDefinitionHash,
0 commit comments