Skip to content

Commit

Permalink
fix: conform with_inputs and with_outputs functions of `FunctionB…
Browse files Browse the repository at this point in the history
…uilder`
  • Loading branch information
MrWad3r committed Feb 17, 2025
1 parent 4cad5bd commit 7afda0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abi/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,10 @@ impl FunctionBuilder {
/// Sets method output types to the specified list of named arguments.
pub fn with_outputs<I, T>(mut self, outputs: I) -> Self
where
I: IntoIterator<Item = NamedAbiType>,
I: IntoIterator<Item = T>,
T: Into<NamedAbiType>,
{
self.outputs = outputs.into_iter().collect();
self.outputs = outputs.into_iter().map(Into::into).collect();
self
}

Expand Down

0 comments on commit 7afda0a

Please sign in to comment.