Skip to content

Commit 256e7a9

Browse files
committed
fix clippy
1 parent 8a73400 commit 256e7a9

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/src/precompiles/neuron.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
use pallet_evm::{ExitError, PrecompileFailure, PrecompileHandle, PrecompileResult};
1+
use pallet_evm::{
2+
AddressMapping, ExitError, HashedAddressMapping, PrecompileFailure, PrecompileHandle,
3+
PrecompileResult,
4+
};
25

36
use crate::precompiles::{
4-
contract_to_origin, get_method_id, get_pubkey, get_slice, parse_netuid,
5-
try_dispatch_runtime_call,
7+
get_method_id, get_pubkey, get_slice, parse_netuid, try_dispatch_runtime_call,
68
};
9+
use crate::RawOrigin;
10+
use crate::{Runtime, RuntimeCall};
11+
use sp_runtime::traits::BlakeTwo256;
712
use sp_runtime::AccountId32;
813
use sp_std::vec;
9-
10-
use crate::{Runtime, RuntimeCall};
1114
pub const NEURON_PRECOMPILE_INDEX: u64 = 2052;
1215

1316
// ss58 public key i.e., the contract sends funds it received to the destination address from the
1417
// method parameter.
18+
#[allow(dead_code)]
1519
const CONTRACT_ADDRESS_SS58: [u8; 32] = [
1620
0xbc, 0x46, 0x35, 0x79, 0xbc, 0x99, 0xf9, 0xee, 0x7c, 0x59, 0xed, 0xee, 0x20, 0x61, 0xa3, 0x09,
1721
0xd2, 0x1e, 0x68, 0xd5, 0x39, 0xb6, 0x40, 0xec, 0x66, 0x46, 0x90, 0x30, 0xab, 0x74, 0xc1, 0xdb,

0 commit comments

Comments
 (0)