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 a379a13 commit 89b3137Copy full SHA for 89b3137
runtime/src/precompiles/staking.rs
@@ -119,7 +119,7 @@ impl StakingPrecompile {
119
}
120
121
fn parse_netuid(data: &[u8], offset: usize) -> Result<u16, PrecompileFailure> {
122
- if data.len() < (offset + 2) as usize {
+ if data.len() < offset + 2 {
123
return Err(PrecompileFailure::Error {
124
exit_status: ExitError::InvalidRange,
125
});
0 commit comments