feat: api fungibles pallet #129
GitHub Actions / clippy
failed
Jul 20, 2024 in 0s
clippy
3 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 18 in pallets/api/src/fungibles/benchmarking.rs
github-actions / clippy
failed to resolve: use of undeclared type `Something`
error[E0433]: failed to resolve: use of undeclared type `Something`
--> pallets/api/src/fungibles/benchmarking.rs:18:14
|
18 | assert_eq!(Something::<T>::get(), Some(s));
| ^^^^^^^^^ use of undeclared type `Something`
github-actions / clippy
no variant or associated item named `new_call_variant_do_something` found for enum `fungibles::pallet::Call` in the current scope
error[E0599]: no variant or associated item named `new_call_variant_do_something` found for enum `fungibles::pallet::Call` in the current scope
--> pallets/api/src/fungibles/benchmarking.rs:12:1
|
12 | / benchmarks! {
13 | | do_something {
14 | | let s in 0 .. 100;
15 | | let caller: T::AccountId = whitelisted_caller();
... |
19 | | }
20 | | }
| | ^
| |_|
| variant or associated item not found in `Call<T>`
|
::: pallets/api/src/fungibles.rs:46:12
|
46 | #[pallet::call]
| ---- variant or associated item `new_call_variant_do_something` not found for this enum
|
note: if you're trying to build a new `fungibles::pallet::Call<T>` consider using one of the following associated functions:
fungibles::pallet::Call::<T>::new_call_variant_transfer
fungibles::pallet::Call::<T>::new_call_variant_approve
--> pallets/api/src/fungibles.rs:46:12
|
46 | #[pallet::call]
| ^^^^
help: there is an associated function `new_call_variant_approve` with a similar name
--> pallets/api/src/fungibles.rs:46:12
|
46 | #[pallet::call]
| ^^^^
= note: this error originates in the macro `$crate::benchmarks_iter` which comes from the expansion of the macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
Check failure on line 8 in pallets/api/src/fungibles/benchmarking.rs
github-actions / clippy
unresolved import `crate::Pallet`
error[E0432]: unresolved import `crate::Pallet`
--> pallets/api/src/fungibles/benchmarking.rs:8:5
|
8 | use crate::Pallet as Template;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Pallet` in the root
|
help: consider importing one of these items instead
|
8 | use crate::fungibles::Pallet as Template;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 | use frame_benchmarking::baseline::Pallet as Template;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 | use frame_system::Pallet as Template;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 | use pallet_assets::Pallet as Template;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Loading