We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f31bbeb commit c4934e3Copy full SHA for c4934e3
frame/support/procedural/src/pallet/parse/call.rs
@@ -235,6 +235,10 @@ impl CallDef {
235
_ => unreachable!("checked during creation of the let binding"),
236
};
237
238
+ if call_idx_attrs.is_empty() {
239
+ return Err(syn::Error::new(method.sig.span(), "Missing call_index"));
240
+ }
241
+
242
if call_idx_attrs.len() > 1 {
243
let msg = "Invalid pallet::call, too many call_index attributes given";
244
return Err(syn::Error::new(method.sig.span(), msg))
0 commit comments