mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 03:07:56 +00:00
fix private event enum error message (#9506)
This commit is contained in:
@@ -167,7 +167,7 @@ impl EventDef {
|
||||
let deposit_event = attr_info.deposit_event;
|
||||
|
||||
if !matches!(item.vis, syn::Visibility::Public(_)) {
|
||||
let msg = "Invalid pallet::event, `Error` must be public";
|
||||
let msg = "Invalid pallet::event, `Event` must be public";
|
||||
return Err(syn::Error::new(item.span(), msg))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user