mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 07:29:49 +00:00
fix private event enum error message (#9506)
This commit is contained in:
1 parent
52b0a4845f
commit
27d4177f93
1 file changed
+1
-1
@@ -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