Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add native token support for fungibles api #147

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

test: add native total supply test

955547b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

feat: add native token support for fungibles api #147

test: add native total supply test
955547b
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Aug 1, 2024 in 0s

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,
    |             -------------------