Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
refactor: Remove pallet-cosmos::Config cast
Browse files Browse the repository at this point in the history
  • Loading branch information
code0xff committed Sep 13, 2024
1 parent 3df9893 commit 91224f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frame/cosmos/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl pallet_cosmwasm::Config for Test {
type ExecuteWasmOrigin = frame_system::EnsureSigned<Self::AccountId>;

type NativeAssetId = NativeAssetId;

type NativeDenom = NativeDenom;
}

Expand Down
2 changes: 1 addition & 1 deletion template/runtime/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
T: pallet_cosmos::Config,
{
fn created(id: &T::AssetId, _owner: &T::AccountId) -> Result<(), ()> {
let symbol = <T as pallet_cosmos::Config>::Assets::symbol(id.clone());
let symbol = T::Assets::symbol(id.clone());
ensure!(!symbol.is_empty(), ());

let denom = BoundedVec::<u8, T::MaxDenomLimit>::try_from(symbol).map_err(|_| ())?;
Expand Down

0 comments on commit 91224f3

Please sign in to comment.