Danial Mehrjerdi 5 달 전
부모
커밋
9254cbc6e0
1개의 변경된 파일2개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 8
      target_chains/ethereum/contracts/contracts/pyth/PythGovernance.sol

+ 2 - 8
target_chains/ethereum/contracts/contracts/pyth/PythGovernance.sol

@@ -110,12 +110,7 @@ abstract contract PythGovernance is
         } else if (gi.action == GovernanceAction.WithdrawFee) {
             withdrawFee(parseWithdrawFeePayload(gi.payload));
         } else if (gi.action == GovernanceAction.SetVerifierAddress) {
-            if (gi.targetChainId == 0)
-                revert PythErrors.InvalidGovernanceTarget();
-            setVerifierAddress(
-                parseSetVerifierAddressPayload(gi.payload),
-                encodedVM
-            );
+            setVerifierAddress(parseSetVerifierAddressPayload(gi.payload));
         } else {
             revert PythErrors.InvalidGovernanceMessage();
         }
@@ -283,8 +278,7 @@ abstract contract PythGovernance is
     }
 
     function setVerifierAddress(
-        SetVerifierAddressPayload memory payload,
-        bytes memory encodedVM
+        SetVerifierAddressPayload memory payload
     ) internal {
         address oldVerifierAddress = address(verifier());
         setVerifier(payload.newVerifierAddress);