diff --git a/Cargo.lock b/Cargo.lock index a02108c73..08953c963 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8815,6 +8815,7 @@ dependencies = [ "num_enum 0.5.11", "pallet-balances", "pallet-dkg-metadata", + "pallet-dkg-proposals", "pallet-evm", "pallet-session", "pallet-staking", diff --git a/precompiles/staking/Cargo.toml b/precompiles/staking/Cargo.toml index d4a19e4d1..650955a16 100644 --- a/precompiles/staking/Cargo.toml +++ b/precompiles/staking/Cargo.toml @@ -39,6 +39,7 @@ precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate pallet-balances = { workspace = true, features = [ "std" ] } +pallet-dkg-proposals = { workspace = true, features = [ "std" ] } pallet-timestamp = { workspace = true, features = [ "std" ] } scale-info = { workspace = true, features = [ "derive", "std" ] } sp-runtime = { workspace = true, features = [ "std" ] } diff --git a/precompiles/staking/src/mock.rs b/precompiles/staking/src/mock.rs index f8e513c09..18277772a 100644 --- a/precompiles/staking/src/mock.rs +++ b/precompiles/staking/src/mock.rs @@ -220,6 +220,7 @@ impl pallet_dkg_metadata::Config for Runtime { type OnDKGPublicKeyChangeHandler = (); type OffChainAuthId = dkg_runtime_primitives::offchain::crypto::OffchainAuthId; type NextSessionRotation = pallet_session::PeriodicSessions; + type DKGAuthorityToMerkleLeaf = pallet_dkg_proposals::DKGEcdsaToEthereumAddress; type ForceOrigin = frame_system::EnsureRoot; type KeygenJailSentence = Period; type SigningJailSentence = Period;