Search code examples
substratepolkadot

ModuleId required for crowdfunding recipe is not present


The crowdfunding app has an import ModuleId

use sp_runtime::{
    traits::{AccountIdConversion, Saturating, Zero},
    ModuleId,
};

const PALLET_ID: ModuleId = ModuleId(*b"ex/cfund");

I am now using FRAME 2.0, sp_runtime no more contain ModuleId, what is the alternative for it?

unresolved import `sp_runtime::ModuleId`

Solution

  • ModuleId -> PalletId Occurred here: https://github.com/paritytech/substrate/pull/8477