Skip to content

Commit

Permalink
feat: expose returns field for DynSolCall type
Browse files Browse the repository at this point in the history
  • Loading branch information
dantop114 committed Nov 25, 2024
1 parent 58a6785 commit 6ca5c0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/dyn-abi/src/dynamic/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ impl DynSolCall {
self.method.as_deref()
}

/// Get the types of the call's returns.
pub const fn returns(&self) -> &DynSolReturns {
&self.returns
}

/// ABI encode the given values as function params.
pub fn abi_encode_input(&self, values: &[DynSolValue]) -> Result<Vec<u8>> {
encode_typeck(&self.parameters, values).map(prefix_selector(self.selector))
Expand Down

0 comments on commit 6ca5c0d

Please sign in to comment.