From 4d85cd46b8544a10fb78ef5eb3f02ff5690bceda Mon Sep 17 00:00:00 2001 From: code0xff Date: Wed, 11 Sep 2024 23:57:01 +0900 Subject: [PATCH] refactor: Remove Inspect condition from NativeAsset in pallet-cosmos --- frame/cosmos/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/cosmos/src/lib.rs b/frame/cosmos/src/lib.rs index 781a62b..4e96d9e 100644 --- a/frame/cosmos/src/lib.rs +++ b/frame/cosmos/src/lib.rs @@ -44,7 +44,7 @@ use frame_support::{ dispatch::{DispatchErrorWithPostInfo, DispatchInfo, PostDispatchInfo}, pallet_prelude::{DispatchResultWithPostInfo, InvalidTransaction, Pays}, traits::{ - tokens::{fungible::Inspect, fungibles, AssetId, Balance}, + tokens::{fungibles, AssetId, Balance}, Currency, Get, }, weights::Weight, @@ -264,7 +264,7 @@ pub mod pallet { type AddressMapping: AddressMapping; /// Native asset type. #[pallet::no_default] - type NativeAsset: Currency + Inspect; + type NativeAsset: Currency; /// Type of an account balance. type Balance: Balance + Into; /// Type of a tradable asset id.