Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Jan 14, 2025
1 parent 590e634 commit eccccec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/sol-macro-expander/src/expand/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, function: &ItemFunction) -> Result<TokenS
ty,
quote! {
<Self::ReturnTuple<'_> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
.map(|r: #return_name| r.#name)
.map(|r| {
let r: #return_name = r.into();
r.#name
})
},
)
}
Expand All @@ -130,8 +132,8 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, function: &ItemFunction) -> Result<TokenS
quote!((#(#return_tys),*)),
quote! {
<Self::ReturnTuple<'_> as alloy_sol_types::SolType>::abi_decode_sequence(data, validate)
.map(Into::into)
.map(|r: #return_name| {
.map(|r| {
let r: #return_name = r.into();
#tuple_ret
})
},
Expand Down

0 comments on commit eccccec

Please sign in to comment.