Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
salman01zp committed Jan 18, 2024
1 parent 4873605 commit b5d500a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion runtime/mainnet/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use pallet_evm_precompile_registry::PrecompileRegistry;
use pallet_evm_precompile_sha3fips::Sha3FIPS256;
use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256};
use pallet_evm_precompile_staking::StakingPrecompile;
use pallet_evm_precompile_vesting::VestingPrecompile;

use precompile_utils::precompile_set::{
AcceptDelegateCall, AddressU64, CallableByContract, CallableByPrecompile, OnlyFrom,
PrecompileAt, PrecompileSetBuilder, SubcallWithMaxNesting,
Expand All @@ -49,7 +51,11 @@ pub type WebbPrecompilesAt<R> = (
StakingPrecompile<R>,
(CallableByContract, CallableByPrecompile),
>,
PrecompileAt<AddressU64<2049>, VestingPrecompile, (CallableByContract, CallableByPrecompile)>,
PrecompileAt<
AddressU64<2049>,
VestingPrecompile<R>,
(CallableByContract, CallableByPrecompile),
>,
// Moonbeam precompiles
PrecompileAt<
AddressU64<2051>,
Expand Down
8 changes: 7 additions & 1 deletion runtime/testnet/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ use pallet_evm_precompile_registry::PrecompileRegistry;
use pallet_evm_precompile_sha3fips::Sha3FIPS256;
use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256};
use pallet_evm_precompile_staking::StakingPrecompile;
use pallet_evm_precompile_vesting::VestingPrecompile;

use precompile_utils::precompile_set::{
AcceptDelegateCall, AddressU64, CallableByContract, CallableByPrecompile, OnlyFrom,
PrecompileAt, PrecompileSetBuilder, SubcallWithMaxNesting,
Expand All @@ -50,7 +52,11 @@ pub type WebbPrecompilesAt<R> = (
StakingPrecompile<R>,
(CallableByContract, CallableByPrecompile),
>,
PrecompileAt<AddressU64<2049>, VestingPrecompile, (CallableByContract, CallableByPrecompile)>,
PrecompileAt<
AddressU64<2049>,
VestingPrecompile<R>,
(CallableByContract, CallableByPrecompile),
>,
// Moonbeam precompiles
PrecompileAt<
AddressU64<2051>,
Expand Down

0 comments on commit b5d500a

Please sign in to comment.