mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
Kitchensink: Fix pallet_mmr config (#2919)
Related to https://github.com/paritytech/polkadot-sdk/issues/2787 Fixes `pallet_mmr::Config` for the kitchensink runtime
This commit is contained in:
@@ -879,7 +879,7 @@ parameter_types! {
|
||||
pub const MaxPointsToBalance: u8 = 10;
|
||||
}
|
||||
|
||||
use sp_runtime::traits::Convert;
|
||||
use sp_runtime::traits::{Convert, Keccak256};
|
||||
pub struct BalanceToU256;
|
||||
impl Convert<Balance, sp_core::U256> for BalanceToU256 {
|
||||
fn convert(balance: Balance) -> sp_core::U256 {
|
||||
@@ -1578,9 +1578,9 @@ impl pallet_vesting::Config for Runtime {
|
||||
|
||||
impl pallet_mmr::Config for Runtime {
|
||||
const INDEXING_PREFIX: &'static [u8] = b"mmr";
|
||||
type Hashing = <Runtime as frame_system::Config>::Hashing;
|
||||
type Hashing = Keccak256;
|
||||
type LeafData = pallet_mmr::ParentNumberAndHash<Self>;
|
||||
type OnNewRoot = ();
|
||||
type OnNewRoot = pallet_beefy_mmr::DepositBeefyDigest<Runtime>;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user