Skip to content

Commit c4934e3

Browse files
committed
DNM: Temporarily require call_index
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent f31bbeb commit c4934e3

File tree

1 file changed

+4
-0
lines changed
  • frame/support/procedural/src/pallet/parse

1 file changed

+4
-0
lines changed

frame/support/procedural/src/pallet/parse/call.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ impl CallDef {
235235
_ => unreachable!("checked during creation of the let binding"),
236236
};
237237

238+
if call_idx_attrs.is_empty() {
239+
return Err(syn::Error::new(method.sig.span(), "Missing call_index"));
240+
}
241+
238242
if call_idx_attrs.len() > 1 {
239243
let msg = "Invalid pallet::call, too many call_index attributes given";
240244
return Err(syn::Error::new(method.sig.span(), msg))

0 commit comments

Comments
 (0)