Skip to content

Commit

Permalink
style(axelar-std-derive): conform IntoEvent nomenclature to other der…
Browse files Browse the repository at this point in the history
…ive macros (#206)
  • Loading branch information
nbayindirli authored Jan 24, 2025
1 parent b97d9d9 commit b583c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use proc_macro2::Ident;
use quote::quote;
use syn::{DeriveInput, LitStr, Type};

pub fn derive_event_impl(input: &DeriveInput) -> proc_macro2::TokenStream {
pub fn into_event(input: &DeriveInput) -> proc_macro2::TokenStream {
let name = &input.ident;
let event_name = event_name_snake_case(input);
let ((topic_field_idents, topic_types), (data_field_idents, data_types)) =
Expand Down
4 changes: 2 additions & 2 deletions packages/stellar-axelar-std-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This ensures compatibility and prevents cyclic dependency issues during testing and release.
mod event;
mod into_event;
mod its_executable;
mod operatable;
mod ownable;
Expand Down Expand Up @@ -188,7 +188,7 @@ pub fn derive_upgradable(input: TokenStream) -> TokenStream {
pub fn derive_into_event(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as DeriveInput);

event::derive_event_impl(&input).into()
into_event::into_event(&input).into()
}

#[proc_macro_derive(InterchainTokenExecutable)]
Expand Down

0 comments on commit b583c7f

Please sign in to comment.