Skip to content

Commit 3f63cba

Browse files
authored
Merge pull request #1150 from opentensor/neuron-weights-set
Neuron weights set
2 parents 9958450 + 053fa0f commit 3f63cba

File tree

5 files changed

+489
-18
lines changed

5 files changed

+489
-18
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/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extern crate alloc;
33
use alloc::format;
44
use core::marker::PhantomData;
55

6-
use frame_support::dispatch::{GetDispatchInfo, Pays};
6+
use crate::{Runtime, RuntimeCall};
77

88
use pallet_evm::{
99
ExitError, ExitSucceed, GasWeightMapping, IsPrecompileResult, Precompile, PrecompileFailure,
@@ -12,13 +12,11 @@ use pallet_evm::{
1212
use pallet_evm_precompile_modexp::Modexp;
1313
use pallet_evm_precompile_sha3fips::Sha3FIPS256;
1414
use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256};
15-
use sp_core::{hashing::keccak_256, H160};
16-
use sp_runtime::{traits::Dispatchable, AccountId32};
17-
18-
use crate::{Runtime, RuntimeCall};
1915

16+
use frame_support::dispatch::{GetDispatchInfo, Pays};
2017
use frame_system::RawOrigin;
21-
18+
use sp_core::{hashing::keccak_256, H160};
19+
use sp_runtime::{traits::Dispatchable, AccountId32};
2220
use sp_std::vec;
2321

2422
// Include custom precompiles

0 commit comments

Comments
 (0)