瀏覽代碼

[Executor] minor fix (#1246)

Dev Kalra 1 年之前
父節點
當前提交
82cd11cc77
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      target_chains/ethereum/contracts/contracts/executor/Executor.sol

+ 2 - 1
target_chains/ethereum/contracts/contracts/executor/Executor.sol

@@ -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);