Skip to content

feat: add native token support for fungibles api #345

feat: add native token support for fungibles api

feat: add native token support for fungibles api #345

GitHub Actions / clippy failed Jul 31, 2024 in 1s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.80.0 (051478957 2024-07-21)
  • cargo 1.80.0 (376290515 2024-07-16)
  • clippy 0.1.80 (0514789 2024-07-21)

Annotations

Check failure on line 71 in pallets/api/src/fungibles/benchmarking.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> pallets/api/src/fungibles/benchmarking.rs:71:39
    |
27  | / #[benchmarks(
28  | |     where
29  | |     <pallet_assets::Pallet<T, AssetsInstanceOf<T>> as Inspect<<T as frame_system::Config>::AccountId>>::AssetId: Zero,
30  | | )]
    | |__- arguments to this function are incorrect
...
71  |           _(RawOrigin::Signed(owner.clone()), asset_id.clone(), spender.clone(), approval_value);
    |                                               ^^^^^^^^^^^^^^^^ expected `fungibles::pallet::Config::AssetKind`, found `pallet_assets::Config::AssetId`
    |
    = note: expected associated type `<T as fungibles::pallet::Config>::AssetKind`
               found associated type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::AssetsInstance>>::AssetId`
    = note: an associated type was expected, but a different one was found
note: associated function defined here
   --> pallets/api/src/fungibles/mod.rs:177:10
    |
177 |         pub fn approve(
    |                ^^^^^^^
178 |             origin: OriginFor<T>,
179 |             asset: T::AssetKind,
    |             -------------------