Skip to content

Commit

Permalink
add identity precompile to Moonbeam
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea committed Dec 5, 2023
1 parent 01eb8f0 commit 0a873bc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions runtime/moonbeam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pallet-evm-precompile-conviction-voting = { workspace = true }
pallet-evm-precompile-crowdloan-rewards = { workspace = true }
pallet-evm-precompile-democracy = { workspace = true }
pallet-evm-precompile-gmp = { workspace = true }
pallet-evm-precompile-identity = { workspace = true }
pallet-evm-precompile-parachain-staking = { workspace = true }
pallet-evm-precompile-preimage = { workspace = true }
pallet-evm-precompile-proxy = { workspace = true }
Expand Down
6 changes: 6 additions & 0 deletions runtime/moonbeam/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use pallet_evm_precompile_conviction_voting::ConvictionVotingPrecompile;
use pallet_evm_precompile_crowdloan_rewards::CrowdloanRewardsPrecompile;
use pallet_evm_precompile_democracy::DemocracyPrecompile;
use pallet_evm_precompile_gmp::GmpPrecompile;
use pallet_evm_precompile_identity::IdentityPrecompile;
use pallet_evm_precompile_modexp::Modexp;
use pallet_evm_precompile_parachain_staking::ParachainStakingPrecompile;
use pallet_evm_precompile_preimage::PreimagePrecompile;
Expand Down Expand Up @@ -238,6 +239,11 @@ type MoonbeamPrecompilesAt<R> = (
XcmTransactorPrecompileV3<R>,
(CallableByContract, CallableByPrecompile),
>,
PrecompileAt<
AddressU64<2072>,
IdentityPrecompile<R>,
(CallableByContract, CallableByPrecompile),
>,
);

/// The PrecompileSet installed in the Moonbeam runtime.
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,7 @@ fn precompile_existence() {
let precompile_addresses: std::collections::BTreeSet<_> = vec![
1, 2, 3, 4, 5, 6, 7, 8, 9, 1024, 1025, 1026, 2048, 2049, 2050, 2051, 2052, 2053, 2054,
2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068,
2069, 2070, 2071,
2069, 2070, 2071, 2702,
]
.into_iter()
.map(H160::from_low_u64_be)
Expand Down

0 comments on commit 0a873bc

Please sign in to comment.