Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion soroban-sdk-macros/src/derive_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use syn::{
pub fn derive_pub_fn(
crate_path: &Path,
impl_ty: &Type,
call: &TokenStream2,
ident: &Ident,
attrs: &[Attribute],
inputs: &Punctuated<FnArg, Comma>,
Expand All @@ -28,6 +27,8 @@ pub fn derive_pub_fn(
// Collect errors as they are encountered and emit them at the end.
let mut errors = Vec::<Error>::new();

let call = quote! { <super::#impl_ty>::#ident };

// Prepare the env input.
let env_input = inputs.first().and_then(|a| match a {
FnArg::Typed(pat_type) => {
Expand Down
2 changes: 0 additions & 2 deletions soroban-sdk-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,9 @@ pub fn contractimpl(metadata: TokenStream, input: TokenStream) -> TokenStream {
.iter()
.map(|m| {
let ident = &m.sig.ident;
let call = quote! { <super::#ty>::#ident };
derive_pub_fn(
crate_path,
&ty,
&call,
ident,
&m.attrs,
&m.sig.inputs,
Expand Down