File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
target_chains/ethereum/contracts/contracts/pyth Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,7 @@ abstract contract PythGovernance is
110
110
} else if (gi.action == GovernanceAction.WithdrawFee) {
111
111
withdrawFee (parseWithdrawFeePayload (gi.payload));
112
112
} else if (gi.action == GovernanceAction.SetVerifierAddress) {
113
- if (gi.targetChainId == 0 )
114
- revert PythErrors.InvalidGovernanceTarget ();
115
- setVerifierAddress (
116
- parseSetVerifierAddressPayload (gi.payload),
117
- encodedVM
118
- );
113
+ setVerifierAddress (parseSetVerifierAddressPayload (gi.payload));
119
114
} else {
120
115
revert PythErrors.InvalidGovernanceMessage ();
121
116
}
@@ -283,8 +278,7 @@ abstract contract PythGovernance is
283
278
}
284
279
285
280
function setVerifierAddress (
286
- SetVerifierAddressPayload memory payload ,
287
- bytes memory encodedVM
281
+ SetVerifierAddressPayload memory payload
288
282
) internal {
289
283
address oldVerifierAddress = address (verifier ());
290
284
setVerifier (payload.newVerifierAddress);
You can’t perform that action at this time.
0 commit comments