feat: add native token support for fungibles api #344
Triggered via pull request
July 31, 2024 10:50
chungquantin
synchronize
#147
Status
Success
Total duration
12s
Artifacts
–
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
3s
Annotations
1 error
mismatched types:
pallets/api/src/fungibles/benchmarking.rs#L71
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,
| -------------------
|