mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
nit: use traits::tokens::fungible => use traits::fungible (#1753)
Slightly less verbose use of fungible(s). --------- Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
@@ -1190,7 +1190,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_parachain_assets_wor
|
||||
.is_empty());
|
||||
|
||||
// check update metadata
|
||||
use frame_support::traits::tokens::fungibles::roles::Inspect as InspectRoles;
|
||||
use frame_support::traits::fungibles::roles::Inspect as InspectRoles;
|
||||
assert_eq!(
|
||||
<pallet_assets::Pallet<Runtime, ForeignAssetsPalletInstance>>::owner(
|
||||
asset_id.into()
|
||||
|
||||
@@ -415,8 +415,8 @@ pub fn assert_metadata<Fungibles, AccountId>(
|
||||
expected_symbol: &str,
|
||||
expected_decimals: u8,
|
||||
) where
|
||||
Fungibles: frame_support::traits::tokens::fungibles::metadata::Inspect<AccountId>
|
||||
+ frame_support::traits::tokens::fungibles::Inspect<AccountId>,
|
||||
Fungibles: frame_support::traits::fungibles::metadata::Inspect<AccountId>
|
||||
+ frame_support::traits::fungibles::Inspect<AccountId>,
|
||||
{
|
||||
assert_eq!(Fungibles::name(asset_id.into()), Vec::from(expected_name),);
|
||||
assert_eq!(Fungibles::symbol(asset_id.into()), Vec::from(expected_symbol),);
|
||||
@@ -428,8 +428,8 @@ pub fn assert_total<Fungibles, AccountId>(
|
||||
expected_total_issuance: impl Into<Fungibles::Balance>,
|
||||
expected_active_issuance: impl Into<Fungibles::Balance>,
|
||||
) where
|
||||
Fungibles: frame_support::traits::tokens::fungibles::metadata::Inspect<AccountId>
|
||||
+ frame_support::traits::tokens::fungibles::Inspect<AccountId>,
|
||||
Fungibles: frame_support::traits::fungibles::metadata::Inspect<AccountId>
|
||||
+ frame_support::traits::fungibles::Inspect<AccountId>,
|
||||
{
|
||||
assert_eq!(Fungibles::total_issuance(asset_id.into()), expected_total_issuance.into());
|
||||
assert_eq!(Fungibles::active_issuance(asset_id.into()), expected_active_issuance.into());
|
||||
|
||||
Reference in New Issue
Block a user