We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57042dd commit afd202aCopy full SHA for afd202a
target_chains/aptos/contracts/sources/governance/governance_action.move
@@ -11,6 +11,7 @@ module pyth::governance_action {
11
value: u8,
12
}
13
14
+ #[lint::skip(unnecessary_numerical_extreme_comparison)]
15
public fun from_u8(value: u8): GovernanceAction {
16
assert!(CONTRACT_UPGRADE <= value && value <= SET_STALE_PRICE_THRESHOLD, error::invalid_governance_action());
17
GovernanceAction { value }
0 commit comments