mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 22:21:08 +00:00
ModuleId to PalletId (#2864)
* lock substrate version for testing * `ModuleId` to `PalletId` * release substrate version * Update Cargo.lock Co-authored-by: Xavier Lau <c.estlavie@icloud.com>
This commit is contained in:
@@ -65,11 +65,11 @@ where
|
||||
mod tests {
|
||||
use super::*;
|
||||
use frame_system::limits;
|
||||
use frame_support::{parameter_types, weights::DispatchClass};
|
||||
use frame_support::{parameter_types, PalletId, weights::DispatchClass};
|
||||
use frame_support::traits::FindAuthor;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::{
|
||||
testing::Header, ModuleId,
|
||||
testing::Header,
|
||||
traits::{BlakeTwo256, IdentityLookup},
|
||||
Perbill,
|
||||
};
|
||||
@@ -141,7 +141,7 @@ mod tests {
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
|
||||
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
|
||||
}
|
||||
|
||||
impl pallet_treasury::Config for Test {
|
||||
@@ -155,7 +155,7 @@ mod tests {
|
||||
type SpendPeriod = ();
|
||||
type Burn = ();
|
||||
type BurnDestination = ();
|
||||
type ModuleId = TreasuryModuleId;
|
||||
type PalletId = TreasuryPalletId;
|
||||
type SpendFunds = ();
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user