File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
target_chains/ethereum/contracts/contracts/pyth Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ abstract contract PythGovernance is
99
99
parseSetWormholeAddressPayload (gi.payload),
100
100
encodedVM
101
101
);
102
+ } else if (gi.action == GovernanceAction.SetFeeInToken) {
103
+ // No-op for EVM chains
102
104
} else if (gi.action == GovernanceAction.SetTransactionFee) {
103
105
setTransactionFee (parseSetTransactionFeePayload (gi.payload));
104
106
} else if (gi.action == GovernanceAction.WithdrawFee) {
Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ contract PythGovernanceInstructions {
35
35
SetValidPeriod, // 4
36
36
RequestGovernanceDataSourceTransfer, // 5
37
37
SetWormholeAddress, // 6
38
- SetTransactionFee, // 7
39
- WithdrawFee // 8
38
+ SetFeeInToken, // 7 - No-op for EVM chains
39
+ SetTransactionFee, // 8
40
+ WithdrawFee // 9
40
41
}
41
42
42
43
struct GovernanceInstruction {
@@ -233,7 +234,7 @@ contract PythGovernanceInstructions {
233
234
revert PythErrors.InvalidGovernanceMessage ();
234
235
}
235
236
236
- /// @dev Parse a SetTransactionFeePayload (action 7 ) with minimal validation
237
+ /// @dev Parse a SetTransactionFeePayload (action 8 ) with minimal validation
237
238
function parseSetTransactionFeePayload (
238
239
bytes memory encodedPayload
239
240
) public pure returns (SetTransactionFeePayload memory stf ) {
@@ -251,7 +252,7 @@ contract PythGovernanceInstructions {
251
252
revert PythErrors.InvalidGovernanceMessage ();
252
253
}
253
254
254
- /// @dev Parse a WithdrawFeePayload (action 8 ) with minimal validation
255
+ /// @dev Parse a WithdrawFeePayload (action 9 ) with minimal validation
255
256
function parseWithdrawFeePayload (
256
257
bytes memory encodedPayload
257
258
) public pure returns (WithdrawFeePayload memory wf ) {
You can’t perform that action at this time.
0 commit comments