Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Jan 10, 2025
1 parent 90d45f6 commit 502c5be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions substrate/frame/support/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ pub mod pallet {
type RuntimeCall;
/// Contains an aggregation of all tasks in this runtime.
type RuntimeTask;
/// Type for dispatching queries.
type RuntimeViewFunction;
/// The runtime event type.
type RuntimeEvent: Parameter
+ Member
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: `#[inject_runtime_type]` can only be attached to `RuntimeCall`, `RuntimeEvent`, `RuntimeTask`, `RuntimeOrigin`, `RuntimeParameters` or `PalletInfo`
error: `#[inject_runtime_type]` can only be attached to `RuntimeCall`, `RuntimeEvent`, `RuntimeTask`, `RuntimeViewFunction`, `RuntimeOrigin`, `RuntimeParameters` or `PalletInfo`
--> tests/derive_impl_ui/inject_runtime_type_invalid.rs:32:5
|
32 | type RuntimeInfo = ();
Expand Down

0 comments on commit 502c5be

Please sign in to comment.