Skip to content

Commit

Permalink
Fix theoretical single element tuple case
Browse files Browse the repository at this point in the history
  • Loading branch information
vkgnosis committed Mar 12, 2021
1 parent 895e221 commit 3f13861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcontract-generate/src/contract/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) fn expand(kind: &ParamType) -> Result<TokenStream> {
}
ParamType::Tuple(t) => {
let inner = t.iter().map(expand).collect::<Result<Vec<_>>>()?;
Ok(quote! { (#(#inner),*) })
Ok(quote! { (#(#inner,)*) })
}
}
}

0 comments on commit 3f13861

Please sign in to comment.