Skip to content

Commit

Permalink
[Executor] minor fix (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev Kalra authored Jan 25, 2024
1 parent 3e762aa commit 82cd11c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 82cd11c

Please sign in to comment.