diff --git a/crates/sol-macro/src/expand/function.rs b/crates/sol-macro/src/expand/function.rs index ccf038e612..c3dd793323 100644 --- a/crates/sol-macro/src/expand/function.rs +++ b/crates/sol-macro/src/expand/function.rs @@ -132,14 +132,17 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, function: &ItemFunction) -> Result(tuple: as ::alloy_sol_types::SolType>::RustType) -> Self { tuple.into() } + #[inline] fn tokenize(&self) -> Self::Token<'_> { #tokenize_impl } + #[inline] fn abi_decode_returns(data: &[u8], validate: bool) -> ::alloy_sol_types::Result { as ::alloy_sol_types::SolType>::abi_decode_sequence(data, validate).map(Into::into) } diff --git a/crates/sol-macro/src/expand/struct.rs b/crates/sol-macro/src/expand/struct.rs index 5a2591d429..129eda61aa 100644 --- a/crates/sol-macro/src/expand/struct.rs +++ b/crates/sol-macro/src/expand/struct.rs @@ -134,6 +134,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, s: &ItemStruct) -> Result { #eip712_encode_type_fns + #[inline] fn eip712_encode_data(&self) -> ::alloy_sol_types::private::Vec { #encode_data_impl } @@ -238,6 +239,7 @@ fn expand_encode_type_fns( ::alloy_sol_types::private::Cow::Borrowed(#root) } + #[inline] fn eip712_components() -> ::alloy_sol_types::private::Vec<::alloy_sol_types::private::Cow<'static, str>> { #components_impl }