From 6ca5c0d8e050dbc5bb5b286780ff2c8c3ad470d4 Mon Sep 17 00:00:00 2001 From: "dantop114@protonmail.com" Date: Mon, 25 Nov 2024 16:22:55 +0100 Subject: [PATCH] feat: expose `returns` field for `DynSolCall` type --- crates/dyn-abi/src/dynamic/call.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/dyn-abi/src/dynamic/call.rs b/crates/dyn-abi/src/dynamic/call.rs index 5fdacee878..99598d9333 100644 --- a/crates/dyn-abi/src/dynamic/call.rs +++ b/crates/dyn-abi/src/dynamic/call.rs @@ -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> { encode_typeck(&self.parameters, values).map(prefix_selector(self.selector))