feat: api fungibles pallet #127
Triggered via pull request
July 20, 2024 14:12
Daanvdplas
synchronize
#113
Status
Success
Total duration
10s
Artifacts
–
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
2s
Annotations
3 errors
failed to resolve: use of undeclared type `Something`:
pallets/api/src/fungibles/benchmarking.rs#L18
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`
|
no variant or associated item named `new_call_variant_do_something` found for enum `fungibles::pallet::Call` in the current scope:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-benchmarking-29.0.0/src/v1.rs#L446
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)
|
unresolved import `crate::Pallet`:
pallets/api/src/fungibles/benchmarking.rs#L8
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;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|