[Executor] minor fix (#1246)

This commit is contained in:
Dev Kalra 2024-01-25 17:41:39 +05:30 committed by GitHub
parent 3e762aa985
commit 82cd11cc77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ contract Executor {
gi.module = PythGovernanceInstructions.GovernanceModule(modNumber);
index += 1;
if (gi.module != MODULE) revert PythErrors.InvalidGovernanceTarget();
if (gi.module != MODULE)
revert ExecutorErrors.InvalidGovernanceTarget();
uint8 actionNumber = encodedInstruction.toUint8(index);
gi.action = ExecutorAction(actionNumber);