mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 03:17:56 +00:00
Update documentation and templates for Pezkuwi branding
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use pezframe_support::{dispatch::GetDispatchInfo, weights::Weight};
|
||||
use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::{H160, H256};
|
||||
use sp_runtime::traits::Hash as THash;
|
||||
use sp_std::{
|
||||
use pezsp_core::{H160, H256};
|
||||
use pezsp_runtime::traits::Hash as THash;
|
||||
use pezsp_std::{
|
||||
convert::{From, Into},
|
||||
prelude::*,
|
||||
};
|
||||
@@ -86,7 +86,7 @@ impl From<AssetType> for AssetId {
|
||||
match asset {
|
||||
AssetType::Xcm(id) => {
|
||||
let mut result: [u8; 16] = [0u8; 16];
|
||||
let hash: H256 = id.using_encoded(<Runtime as pezframe_system::Config>::Hashing::hash);
|
||||
let hash: H256 = id.using_encoded(<Runtime as frame_system::Config>::Hashing::hash);
|
||||
result.copy_from_slice(&hash.as_fixed_bytes()[0..16]);
|
||||
u128::from_le_bytes(result)
|
||||
}
|
||||
@@ -207,7 +207,7 @@ impl AccountIdAssetIdConversion<AccountId, AssetId> for Runtime {
|
||||
mod tests {
|
||||
mod asset_registrar {
|
||||
use pezpallet_asset_manager::AssetRegistrar;
|
||||
use sp_io::TestExternalities;
|
||||
use pezsp_io::TestExternalities;
|
||||
|
||||
use crate::{
|
||||
configs::{AssetRegistrar as Registrar, AssetRegistrarMetadata},
|
||||
|
||||
Reference in New Issue
Block a user